------- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-03 16:05 ------- We just don't error until you use the function, in that the following errors: // line 1 class A {}; class B : private A { };
extern B b; int f( A & = b); // ERROR A & a = b; // ERROR int x = f(); // ERROR -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29332