view gcc/testsuite/g++.dg/cpp1y/paren5.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

// PR c++/93299 - ICE in tsubst_copy with parenthesized expression.
// { dg-do compile { target c++14 } }

template <typename> struct A {
  enum { b = 8 };
};

template <int> struct __attribute__((aligned((A<int>::b)))) D { };
struct S : D<0> { };

template <int N> struct __attribute__((aligned((A<int>::b) + N))) D2 { };
struct S2 : D2<0> { };