------- Comment #3 from reichelt at gcc dot gnu dot org 2007-04-09 18:32 ------- Btw, since GCC 4.1.0 the error message is:
bug.cc:13: error: reference to 'S' is ambiguous bug.cc:4: error: candidates are: typedef struct S A<S>::S bug.cc:7: error: struct S bug.cc:13: error: template argument 1 is invalid bug.cc:13: error: friend declaration does not name a class or function -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21146