Bug 57114

Summary: Checking the 'enable exception handling' turns OFF exception handling
Product: [Applications] kdevelop Reporter: Chris Thompson <chris>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Chris Thompson 2003-04-11 01:54:30 UTC
Version:           Gideon 3.0.0a4 (using KDE KDE 3.1.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.2 
OS:          Linux

From main menu with a C++ project, do the following:

Project --> Project Options --> Configure Options --> C++ --> [...] on the Compiler Flags line.

In the General tab, enable the 'Enable exception handling' feature in Code Generation.

Expected result:
-fexceptions would be added to the compiler options.

Alternate expected result:
-fno-exceptions, if it exists in the compiler options textbox, would be removed.

Actual result:
Although nothing to do with -f{no-,}exceptions exists in the compiler options textbox, -fno-exceptions is added.  This DISABLES rather than enables exception handling using g++.

Suggested solution:
Change the behavior.  Make it add -fexceptions instead of -fno-exceptions.  Alternatively, change the wording to 'Disable exception handling', though this wording is rather nasty.
Comment 1 Amilcar do Carmo Lucas 2003-04-11 17:36:31 UTC
Fixed in CVS by Alexander Dymo <cloudtemple at mksat dot net>