This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/52566] #include in c++ namespace scope doesn't work properly
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Mar 2012 17:09:37 +0000
- Subject: [Bug preprocessor/52566] #include in c++ namespace scope doesn't work properly
- Auto-submitted: auto-generated
- References: <bug-52566-4@http.gcc.gnu.org/bugzilla/>
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.