[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#444085: libstdc++6-4.2-dev: typeinfo seems to be broken



tag 444085 + moreinfo
thanks

please could you

 - provide a testcase without using boost
 - recheck with gcc-4.3/gcc-snapshot

Andreas Pakulat writes:
> Package: libstdc++6-4.2-dev
> Version: 4.2.1-5
> Severity: important
> 
> Hi,
> 
> it seems that the typeinfo file from /usr/include/c++/4.2 is somehow
> broken. Compiling a program that includes this file indirectly I get:
> In file included from /usr/include/c++/4.2/bits/locale_facets.tcc:42,
>                  from /usr/include/c++/4.2/locale:46,
>                  from /usr/include/c++/4.2/bits/ostream.tcc:46,
>                  from /usr/include/c++/4.2/ostream:572,
>                  from /usr/include/c++/4.2/iterator:70,
>                  from /usr/include/boost/next_prior.hpp:15,
>                  from /usr/include/boost/utility.hpp:16,
>                  from /usr/include/boost/thread/thread.hpp:12,
>                  from /usr/include/boost/thread.hpp:10,
>                  from src/core/thread.h:24,
>                  from src/net/clientthread.h:24,
>                  from src/net/common/clientstate.cpp:21:
> /usr/include/c++/4.2/typeinfo: At global scope:
> /usr/include/c++/4.2/typeinfo:41: error: expected unqualified-id before end of line
> /usr/include/c++/4.2/typeinfo:41: error: expected `}' before end of line
> /usr/include/c++/4.2/typeinfo:41: error: expected `}' before end of line
> /usr/include/c++/4.2/typeinfo:41: error: expected `}' before end of line
> /usr/include/c++/4.2/typeinfo:41: error: expected declaration before end of line
> 
> Line 41 in /usr/include/c++/4.2 and surroundings look like this:
> 36  #ifndef _TYPEINFO
> 37  #define _TYPEINFO
> 38
> 39  #include <exception>
> 40
> 41  #pragma GCC visibility push(default)
> 42
> 43  extern "C++" {
> 
> Removing the pragma there and on line 166 lets the compiler go on.




Reply to: