c++/9712: __PRETTY_FUNCTION__ in function try block causes ICE
vlukas@gmx.de
vlukas@gmx.de
Sat Feb 15 14:46:00 GMT 2003
>Number: 9712
>Category: c++
>Synopsis: __PRETTY_FUNCTION__ in function try block causes ICE
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Sat Feb 15 14:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Volker Lukas
>Release: 3.4 20030215 (experimental)
>Organization:
>Environment:
System: Linux thunderbird 2.4.20 #1 Sat Jan 11 12:08:38 CET 2003 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --prefix=/usr/local/gcc_newparser --disable-libgcj --enable-languages=c,c++ --disable-nls
>Description:
When compiling a function enclosed by a function try block, containing __PRETTY_FUNCTION__, c++ exits with a segmentation fault.
This happens with at least a GCC 3.4 snapshot from
2003-02-15.
GCC 2.95.3 and GCC 3.2.2 compile the same code.
Please notice that this also breaks the usage of the "assert"
macro provided with glibc 2.3.1 in function try blocks, because it uses __PRETTY__FUNCTION__.
>How-To-Repeat:
compile the following code snippet with GCC 3.4 20030215:
void func()
try { __PRETTY_FUNCTION__; }
catch(...)
{ }
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list