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

[RFC] g++.dg/parse/undefined1.C fails


Hi everyone, hi Mark,

the testcase:

// PR c++/8143
// { dg-do compile }

struct foo
{
   X x;                   // { dg-error "" }

   foo(X)              {} // { dg-error "" }
   foo(X y, int) : x() {} // { dg-error "" }
};

added yesterday, is currently failing since now one more error
is issued:

undefined1.C:6: error: `X' does not name a type
undefined1.C:8: error: invalid member function declaration
undefined1.C:6: error: expected class-key
undefined1.C:6: error: `X' does not name a type
undefined1.C:8: error: invalid function declaration
undefined1.C:9: error: expected `)'
undefined1.C:9: error: expected `,' or `;'
undefined1.C:10: error: expected declaration    <------------

Should the testcase fixed or the parser ;) ?

Thanks,
Paolo


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