This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/6176: sparc-sun-solaris2.7 gcc-3.1 g++ tree check failure in g++.other/crash32.C
- From: ghazi at caip dot rutgers dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 4 Apr 2002 19:45:53 -0000
- Subject: c++/6176: sparc-sun-solaris2.7 gcc-3.1 g++ tree check failure in g++.other/crash32.C
- Reply-to: ghazi at caip dot rutgers dot edu
>Number: 6176
>Category: c++
>Synopsis: sparc-sun-solaris2.7 gcc-3.1 g++ tree check failure in g++.other/crash32.C
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Apr 04 11:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Kaveh Ghazi
>Release: gcc version 3.1 20020403 (prerelease)
>Organization:
>Environment:
sparc-sun-solaris2.7 native as/ld
>Description:
I get a tree checking failure in g++.other/crash32.C:
/tmp/.foo/branch/egcc-3.1-CVS20020403/gcc/testsuite/g++.old-deja/g++.other/crash32.C:11: missing ';' before right brace
/tmp/.foo/branch/egcc-3.1-CVS20020403/gcc/testsuite/g++.old-deja/g++.other/crash32.C:12: destructors must be member functions
/tmp/.foo/branch/egcc-3.1-CVS20020403/gcc/testsuite/g++.old-deja/g++.other/crash32.C:13: `a' was not declared in this scope
/tmp/.foo/branch/egcc-3.1-CVS20020403/gcc/testsuite/g++.old-deja/g++.other/crash32.C:13: parse error before `=' token
/tmp/.foo/branch/egcc-3.1-CVS20020403/gcc/testsuite/g++.old-deja/g++.other/crash32.C:26: `bar' undeclared (first use this function)
/tmp/.foo/branch/egcc-3.1-CVS20020403/gcc/testsuite/g++.old-deja/g++.other/crash32.C:26: (Each undeclared identifier is reported only once for each function it appears in.)
/tmp/.foo/branch/egcc-3.1-CVS20020403/gcc/testsuite/g++.old-deja/g++.other/crash32.C:26: syntax error before `;' token
/tmp/.foo/branch/egcc-3.1-CVS20020403/gcc/testsuite/g++.old-deja/g++.other/crash32.C:30: tree check: expected namespace_decl, have function_decl in binding_for_name, at cp/decl.c:2186
It appears to be platform independent since I also get it on iris6.2. The test is marked xfail, but it shouldn't allow a checking ICE pass through. So there's a bug in g++ and a but in the testsuite.
>How-To-Repeat:
configure with tree checking enabled and make "check-c++"
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: