This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/10070: [3.3 regression] mips-sgi-irix6.5 error in g++.other/decl5.C


>Number:         10070
>Category:       c++
>Synopsis:       [3.3 regression] mips-sgi-irix6.5 error in g++.other/decl5.C
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 14 01:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kaveh Ghazi
>Release:        gcc 3.3 20030313 (prerelease)
>Organization:
>Environment:
mips-sgi-irix6.5
>Description:
Sometime between 20030309 and 20030311 I started getting crashes in g++.other/decl5.C as shown between these two reports:

http://gcc.gnu.org/ml/gcc-testresults/2003-03/msg00575.html
http://gcc.gnu.org/ml/gcc-testresults/2003-03/msg00732.html

gdb says:

Program received signal SIGSEGV, Segmentation fault.
yyparse () at parse.y:2337
(gdb) bt
#0  yyparse () at parse.y:2337
#1  0x1018e9d0 in c_common_parse_file (set_yydebug=200) at ../../egcc-3.3-CVS20030312/gcc/c-lex.c:159
#2  0x101ad144 in compile_file () at ../../egcc-3.3-CVS20030312/gcc/toplev.c:2126
#3  0x101b4958 in do_compile () at ../../egcc-3.3-CVS20030312/gcc/toplev.c:5363
#4  0x101b4a88 in toplev_main (argc=16, argv=0x7fff2ef4) at ../../egcc-3.3-CVS20030312/gcc/toplev.c:5393
#5  0x1019b404 in main (argc=200, argv=0x7fff20e0) at ../../egcc-3.3-CVS20030312/gcc/main.c:35
(gdb)


>How-To-Repeat:
Target mips-sgi-irix6.5 and compile decl5.ii with:

cc1plus -fpreprocessed decl5.ii -quiet -dumpbase decl5.C -ansi -auxbase-strip /var/tmp/gcc-testing/branch/build/gcc/testsuite/decl5.o -pedantic-errors -Wno-long-long -ansi -version -fmessage-length=0 -o decl5.s


# 1 "/caip/u58/ghazi/gcc-testing/branch/egcc-3.3-CVS20030312/gcc/testsuite/g++.old-deja/g++.other/decl5.C"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "/caip/u58/ghazi/gcc-testing/branch/egcc-3.3-CVS20030312/gcc/testsuite/g++.old-deja/g++.other/decl5.C"
# 10 "/caip/u58/ghazi/gcc-testing/branch/egcc-3.3-CVS20030312/gcc/testsuite/g++.old-deja/g++.other/decl5.C"
struct A {
  int A::fn();
  int A::m;
  struct e;
  struct A::e {int i;};
  struct A::expand {
  int m;
  };
  struct Z;
  expand me;
  void foo(struct A::e);
  void foo(struct A::z);
};

struct Q;
struct B {
  struct A::fink {
  int m;
  };
  struct A::Z {
    int m;
  };
  int m;
  int n;
  struct ::Q {
    int m;
  };
  int A::fn() {
    return 0;
  }
  void fn(struct ::Q &);
  void foo(struct A::y);
};

struct ::C {
  int i;
};

namespace N {
  int fn();
  struct F;
}

namespace NMS
{
  void NMS::fn();
  int NMS::i;
  struct NMS::D {
    int i;
  };
  struct N::E {
    int i;
  };
  struct ::F {
    int i;
  };
  int N::fn() {
    return 0;
  }
  struct N::F {
    int i;
  };
}

NMS::D thing;
void NMS::fn()
{
  i = 3;
}

>Fix:

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]