Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/alias-decl-22.C

raw
1 // The standard is unclear about whether this testcase is well-formed.
2 // Clang considers it well-formed, EDG not. Let's go with EDG for now.
3 // { dg-do compile { target c++11 } }
4
5 template <class T>
6 using foo = typename T::bar; // { dg-error "this context" }
7
8 class B
9 {
10 typedef int bar; // { dg-message "private" }
11 foo<B> f; // { dg-message "required" }
12 };