This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28514] pch vs. anonymous namespaces
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2006 17:04:04 -0000
- Subject: [Bug c++/28514] pch vs. anonymous namespaces
- References: <bug-28514-365@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from bkoz at gcc dot gnu dot org 2006-07-27 17:04 -------
Created an attachment (id=11957)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11957&action=view)
reproducer with today's gcc
To reproduce, do:
/mnt/share/bld/gcc/./gcc/xgcc -shared-libgcc -B/mnt/share/bld/gcc/./gcc
-nostdinc++ -Winvalid-pch -Wno-deprecated -x c++-header
i686-pc-linux-gnu/bits/extc++.h.gch.ii -o
i686-pc-linux-gnu/bits/extc++.h.gch/02g.gch
Or equivalent, based on your current build compiler directory locations.
Get:
/mnt/share/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/ropeimpl.h: In
static member function 'static _CharT __gnu_cxx::rope<_CharT,
_Alloc>::_S_fetch(__gnu_cxx::_Rope_RopeRep<_CharT, _Alloc>*, size_t) [with
_CharT = char, _Alloc = std::allocator<char>]':
/mnt/share/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/rope:1980:
instantiated from '_CharT __gnu_cxx::rope<_CharT, _Alloc>::operator[](size_t)
const [with _CharT = char, _Alloc = std::allocator<char>]'
/mnt/share/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/rope:2894:
instantiated from here
/mnt/share/bld/gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/ropeimpl.h:1334:
error: case label does not reduce to an integer constant
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28514