This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]