[Bug libstdc++/34680] New: Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti

2008-01-04 Thread manish at flock dot com
Product: gcc Version: 4.2.3 Status: UNCONFIRMED Severity: major Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: manish at flock dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug libstdc++/34680] Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti

2008-01-04 Thread manish at flock dot com
--- Comment #2 from manish at flock dot com 2008-01-04 23:44 --- Perhaps I wasn't clear, but this isn't theoretical. Files that *used* to build with gcc 4.2.2 with -fno-rtti no longer do now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34680

[Bug libstdc++/34680] Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti

2008-01-04 Thread manish at flock dot com
--- Comment #3 from manish at flock dot com 2008-01-04 23:45 --- Created an attachment (id=14881) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14881&action=view) Test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34680

[Bug libstdc++/34680] Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti

2008-01-04 Thread manish at flock dot com
--- Comment #4 from manish at flock dot com 2008-01-04 23:47 --- Building the above as follows: $ g++ -fno-rtti -Os -o testcase testcase.cpp Results in: /usr/include/c++/4.2/bits/locale_facets.tcc: In function ‘const _Facet& std::use_facet(const std::locale&) [with _Fac