[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git] / clang / test / SemaCXX / PR8755.cpp
blobc0bcab3537d654691fbb1070ba147c9285518534
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 template <typename T>
4 struct A {
5 typedef int iterator; // expected-note{{declared here}}
6 };
8 template <typename T>
9 void f() {
10 class A <T> ::iterator foo; // expected-error{{typedef 'iterator' cannot be referenced with the 'class' specifier}}
13 void g() {
14 f<int>(); // expected-note{{in instantiation of function template}}