Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/gen-attrs-55.C

raw
1 // PR c++/58584
2 // { dg-do compile { target c++11 } }
3
4 struct A
5 {
6 int i alignas(this); // { dg-error "17:invalid use of 'this'" }
7 };
8
9 template<int> struct B
10 {
11 int j alignas(this); // { dg-error "17:invalid use of 'this'" }
12 };