[Bug libstdc++/35000] #include sometimes fails in namespaces

mw268 at bath dot ac dot uk gcc-bugzilla@gcc.gnu.org
Thu Jan 31 08:22:00 GMT 2008



------- Comment #2 from mw268 at bath dot ac dot uk  2008-01-31 06:38 -------
(In reply to comment #1)
> This is working as designed.  Why are you doing #include inside a namespace
> anyways?
> 

I was using it to enclose windows.h in a namespace win to avoid potential
problems and ended up causing one. The reason I thought I was a bug was because
it works if the #include is before the namespace.


-- 


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



More information about the Gcc-bugs mailing list