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]

Re: default int paramters ignored?


Joe Buck <Joe.Buck@synopsys.com> writes:

[...]

| Doing a fancier recovery should probably be postponed until the new parser
| is used.

Agreed.

|  An intermediate solution might just look up the name as a
| template after it is determined to be undeclared as an identifier,
| and generate the error message in a different way, e.g.
| 
| b.cxx: In function `int main()':
| b.cxx:10: A template name `Rnd' is being used where an identifier or type name is expected.
| b.cxx:10: parse error before `;' token
| 
| that is, make no changes other than the text of the message that is
| issued.

OK, I'll see what I can up with -- I've myself always been annoyed by
the "first use this function" stuff.

-- Gaby


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