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 preprocessor/52566] #include in c++ namespace scope doesn't work properly


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.


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