------- 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