gcc/testsuite/g++.dg/cpp1y/paren5.C
raw| 1 | // PR c++/93299 - ICE in tsubst_copy with parenthesized expression. |
| 2 | // { dg-do compile { target c++14 } } |
| 3 | |
| 4 | template <typename> struct A { |
| 5 | enum { b = 8 }; |
| 6 | }; |
| 7 | |
| 8 | template <int> struct __attribute__((aligned((A<int>::b)))) D { }; |
| 9 | struct S : D<0> { }; |
| 10 | |
| 11 | template <int N> struct __attribute__((aligned((A<int>::b) + N))) D2 { }; |
| 12 | struct S2 : D2<0> { }; |