相关代码 |
|
// { dg-do compile } // Copyright (C) 2003 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 22 Jul 2003 // PR c++ 11596 template struct A { enum { value }; }; template struct B { enum { value = A::value }; }; int ary[!B::value ? 1 : -1]; template struct A1 { enum { value = 1}; }; template struct A1 { enum { value}; }; template struct B1 { enum { value = A1::value }; }; int ary1[!B1::value ? 1 : -1];
相关资源 |
|