This is the mail archive of the gcc-bugs@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]

(C++) Crash while printing a warning


When I compile the following snippet:

  struct Binding {
    unsigned varValue;
    bool isVariable;

    Binding() : isVariable(true), varValue(0) {}
  };

with -Wall and the current CVS sources of GCC on sparc-sun-solaris2.6,
I get the following error message:

  x.cc:5: sorry, not implemented: `tree_list' not supported by dump_decl
  x.cc: In method `Binding::Binding ()':
  ďa      :-279181632: warning: member initializers for `{declaration error}'
  x.cc:2: warning:   and `unsigned int Binding::varValue'
  x.cc:5: warning:   will be re-ordered to match declaration order

(I wrote "crash", as compilation does not proceed after that.)

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/


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