This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29727] [4.2/4.3 regression] ICE on invalid initializer for template member
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Sep 2007 14:54:05 -0000
- Subject: [Bug c++/29727] [4.2/4.3 regression] ICE on invalid initializer for template member
- References: <bug-29727-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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