[Bug preprocessor/52566] #include in c++ namespace scope doesn't work properly

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 12 17:10:00 GMT 2012


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-12 17:09:37 UTC ---
You either should have different content of the two headers, or don't use
#pragma once, or you need to have different timestamps.  In order to support
symlinks/hardlinks and also lame filesystems that lack them, the preprocessor
only looks at file sizes/timestamps and content if there are multiple #pragma
once (or #import) headers.



More information about the Gcc-bugs mailing list