------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-05 19:15 ------- (In reply to comment #5) > Diagnostics? Both files are 100% valid C++ - but since the C++ standard > doesn't > enforce implementation of references as pointers they cause ABI-defined (?) > behaviour at/after linkage, just as...
Yes both files are valid C++ but when you link them together they become invalid C++ and yes the C++ defines this as invalid with no diagnostic required. In fact your example is also invalid C++ but since the standard says we don't have to provide diagnostic as it is a hard problem to actually provide the diagnostic. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18842