Bug 84263 - libsigc++ doesn't compile when CXXFLAGS contains -fno-exceptions
Bug#: 84263 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnome@gentoo.org Reported By: joseph@cheek.com
Component: Ebuilds
URL: 
Summary: libsigc++ doesn't compile when CXXFLAGS contains -fno-exceptions
Keywords:  
Status Whiteboard: 
Opened: 2005-03-05 20:45 0000
Description:   Opened: 2005-03-05 20:45 0000
test_exception_catch.cc: In member function `int f::operator()(int)':
test_exception_catch.cc:15: error: exception handling disabled, use -fexceptions to enable
test_exception_catch.cc: In member function `int my_catch::operator()()':
test_exception_catch.cc:42: error: `e' undeclared (first use this function)
test_exception_catch.cc:42: error: (Each undeclared identifier is reported onlyonce for each function it appears in.)
make[2]: *** [test_exception_catch.o] Error 1
make[2]: Leaving directory `/usr/src/RedmondLinux/BUILD/libsigc++-2.0.5/tests'


Reproducible: Always
Steps to Reproduce:
1.add -fno-exceptions to CXXFLAGS
2.emerge libsigc++
3.verify above failure

Actual Results:  
see above

Expected Results:  
src_compile should filter-flags -fno-exceptions

------- Comment #1 From Marcus D. Hanwell 2005-05-07 18:49:03 0000 -------
This flag disables a core feature of C++, and I think many C++ applications
would fail without exception handling. I have added a filter-flags line for it,
but I don't think this flag should be set globally for CXXFLAGS.