c++/919: segfault in setup_class_bindings

jakub@redhat.com jakub@redhat.com
Tue Nov 28 07:56:00 GMT 2000


>Number:         919
>Category:       c++
>Synopsis:       segfault in setup_class_bindings
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 28 07:56:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     jakub@redhat.com
>Release:        g++ 2.97 20001128
>Organization:
>Environment:
i386-redhat-linux
>Description:
G++ segfaults on
struct a { int a; };
struct b : a {};
grokdeclarator has a comment that field can have the
same name as enclosing class if it does not have
explicit constructor but apparently this is not handled
properly by dfs_push_type_decls.
>How-To-Repeat:
cat >test.C <<EOF
struct a { int a; };
struct b : a {};
EOF
g++ test.C
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-bugs mailing list