[Bug c++/28360] [4.2 regression] undefined reference when header contains additional namespace

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 12 17:09:00 GMT 2006



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-07-12 17:09 -------
To better explain:
test::MonitorHandle references a class in an anonymous namespace which causes
that class to be different in each TU.  Since ODR rules say the class needs to
be the same across TUs so we declare test::MonitorHandle also a local class.


-- 


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



More information about the Gcc-bugs mailing list