This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20028] [3.4 Regression] class and then template class gives an ICE
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2005 21:14:30 -0000
- Subject: [Bug c++/20028] [3.4 Regression] class and then template class gives an ICE
- References: <20050217160539.20028.jcobyrne@cox.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-17 21:14 -------
(In reply to comment #5)
> (In reply to comment #4)
> I guess I stumbled on the segfault by mistake in my vain attempts to get the
> code to compile on 3.3 and greater. Syntactically and semantically, I have
> confirmed that this code does work, and it is also used similarly in
> Alexandrescu's book on C++ Design Patterns.
Yes you did stumbled on the segfault but note this is not valid code still, yes a C++ book can get it
wrong.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20028