This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: default int paramters ignored?
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Joe Buck <Joe dot Buck at synopsys dot com>
- Cc: nbecker at hns dot com (Neal D. Becker), gcc at gcc dot gnu dot org
- Date: 10 Jul 2002 23:32:14 +0200
- Subject: Re: default int paramters ignored?
- Organization: CodeSourcery, LLC
- References: <200207102111.OAA27677@atrus.synopsys.com>
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