[Bug c++/29727] [4.2/4.3 regression] ICE on invalid initializer for template member
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Tue Sep 25 14:54:00 GMT 2007
------- Comment #4 from pcarlini at suse dot de 2007-09-25 14:54 -------
When fixing this bug we also want to make sure we do not reject this valid
variant:
template<int> struct A
{
struct S { int X; };
static S a;
};
template<int N> typename A<N>::S A<N>::a = { X : 1 };
void foo()
{
A<0>::a;
}
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pcarlini at suse dot de
Keywords| |rejects-valid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29727
More information about the Gcc-bugs
mailing list