diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-02-23 22:36:28 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-02-23 22:36:28 +0000 |
commit | d26f95bc949b98d4c092c79ae0ab689d29889e7a (patch) | |
tree | bbe1625d51d176db66a4e2cb6c3439dc37ad077c /clang/test/Parser/recovery.cpp | |
parent | b6c31f3878377b1c60bf5fe521fcb717e039e62b (diff) | |
download | bcm5719-llvm-d26f95bc949b98d4c092c79ae0ab689d29889e7a.tar.gz bcm5719-llvm-d26f95bc949b98d4c092c79ae0ab689d29889e7a.zip |
Revert "Improve declaration / expression disambiguation around ptr-operators, and use"
This seems to break mixing function-style and c-style casts, and is
breaking bootstrapping llvm.
This reverts r230261.
llvm-svn: 230274
Diffstat (limited to 'clang/test/Parser/recovery.cpp')
-rw-r--r-- | clang/test/Parser/recovery.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/test/Parser/recovery.cpp b/clang/test/Parser/recovery.cpp index f099473e04b..2d5b518c691 100644 --- a/clang/test/Parser/recovery.cpp +++ b/clang/test/Parser/recovery.cpp @@ -203,14 +203,6 @@ namespace pr15133 { }; } -namespace AbstractPtrOperator { - // A ptr-operator and no name means we have a declaration and not an - // expression. - template<typename T> int f(int*, T::type); // expected-error {{missing 'typename'}} - template<typename T> int f(int (T::*), T::type); // expected-error {{missing 'typename'}} - template<typename T> int f(int (*)(), T::type); // expected-error {{missing 'typename'}} -} - namespace InvalidEmptyNames { // These shouldn't crash, the diagnostics aren't important. struct ::, struct ::; // expected-error 2 {{expected identifier}} expected-error 2 {{declaration of anonymous struct must be a definition}} expected-warning {{declaration does not declare anything}} |