20 lines · cpp
1// RUN: %clang_cc1 %s -fopenacc -verify2 3// Ensure that we are properly handling 'vardecl' when they are created during4// error recovery. The errors themselves aren't really relevant/necessary to the5// bug fix.6struct Thing{ };7struct pair {8 // expected-error@+2{{no member named 'T1'}}9 // expected-error@+1{{expected a qualified name after 'typename'}}10 template <typename enable_if<Thing::template T1<int>() &&11 !Thing::template T1<int>(),12 // expected-error@+4{{non-friend class member 'type' cannot have a qualified name}}13 // expected-error@+3{{type specifier is required}}14 // expected-error@+2{{non-static data member 'type' cannot be declared as a template}}15 // expected-error@+1{{no member named 'type' in the global namespace}}16 bool>::type = false>17 // expected-error@+1{{expected '(' for function-style cast or type construction}}18 void func(void);19};20