[Bug c++/15057] New: Compiling of conditional value throw constructs cause a segmentation violation
christian dot groove at gmx dot de
gcc-bugzilla@gcc.gnu.org
Wed Apr 21 21:02:00 GMT 2004
Hy there
first of all, the new gcc-3.4 is a real improvement.
It is definitivly better the the gcc-3.3.1 is used before,
thanks for your work.
OK, here is the bug: The following throw construct cause
a crash of g++ when compiling this (taken from TOra-Tool):
throw (<conditional>) ? <exprA> : <exprB> ;
A workaround for this is the follwing:
static retType __eval( )
{
if <conditional>
return <exprA>
else
return <exprB>
}
I had to do this in order to make the tool TOra to
compile.
Thanks
--
Summary: Compiling of conditional value throw constructs cause a
segmentation violation
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: christian dot groove at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15057
More information about the Gcc-bugs
mailing list