c++/9712: [3.4 regression][New parser] __PRETTY_FUNCTION__ in function try block causes ICE

Steven Bosscher s.bosscher@student.tudelft.nl
Tue Feb 18 23:46:00 GMT 2003


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9712

This bug is apparently not a "New parser" bug.  It disappears if I
revert the following hunks from a series of patches applied by Jason in
early January:

2003-01-02  Jason Merrill  <jason@redhat.com>

        * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
        outermost scope.
        * c-decl.c (c_make_fname_decl): Push the decls there, too.

        * cp/decl.c (cp_make_fname_decl): Push the decls inside the
        outermost scope.

The segfault happens in finish_fname_decls when it's looking for a
COMPOUND_STMT that isn't there.

Greetz
Steven

-------------- next part --------------
A non-text attachment was scrubbed...
Name: regression.patch
Type: text/x-patch
Size: 2743 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20030218/e3dc89fc/attachment.bin>


More information about the Gcc-bugs mailing list