[Bug c++/41038] [4.4/4.5 regression] Parsing error related to qualified name id

crowl at google dot com gcc-bugzilla@gcc.gnu.org
Wed Aug 12 18:42:00 GMT 2009



------- Comment #2 from crowl at google dot com  2009-08-12 18:42 -------
It looks like the compiler is not properly handling injected class names.  The
original example was not the best use of the injected class name, but should be
accepted.  Jonathan's example is better code, and still shows the problem.

The workaround is to drop the qualifier.  Since the base is public, its member
will be found.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41038



More information about the Gcc-bugs mailing list