Internal compiler error 980711

Amaury Cedrick Darsch amaury@sj-coop.net
Sat Oct 24 22:55:00 GMT 1998


Dear egcs team,

Please find below a simple example, which causes an internal compiler error 
when using
namespace within a struct (more precisely with the constructor).

ecgs-version: 1.1 (egcs-2.91.57 debian distribution i586-linux kernel 2.0.35)

to reproduce: g++ -c foo.cpp

example:

namespace A {

  struct foo {
    int x;
    
    // this constructor causes an internal compiler error
    // removing A:: is ok ...
    // using a forward declaration for the struct (inside a class) and later 
using
    // the same code produces the same internal error

    A::foo (void) {
      x= 0;
    }
  };
}


best regards - amaury





More information about the Gcc-bugs mailing list