Commit c5785644 by Wolfgang Bangerth Committed by Wolfgang Bangerth

lex.c (unqualified_fn_lookup_error): Mention that the error message needs to be…

lex.c (unqualified_fn_lookup_error): Mention that the error message needs to be kept in synch with the manual.

2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
* lex.c (unqualified_fn_lookup_error): Mention that the error
message needs to be kept in synch with the manual.

From-SVN: r69676
parent 5cf0212f
2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
* lex.c (unqualified_fn_lookup_error): Mention that the error
message needs to be kept in synch with the manual.
2003-07-22 Nathan Sidwell <nathan@codesourcery.com> 2003-07-22 Nathan Sidwell <nathan@codesourcery.com>
PR c++/11614 PR c++/11614
......
...@@ -708,8 +708,14 @@ unqualified_fn_lookup_error (tree name) ...@@ -708,8 +708,14 @@ unqualified_fn_lookup_error (tree name)
{ {
/* In a template, it is invalid to write "f()" or "f(3)" if no /* In a template, it is invalid to write "f()" or "f(3)" if no
declaration of "f" is available. Historically, G++ and most declaration of "f" is available. Historically, G++ and most
other compilers accepted that usage; explain to the user what other compilers accepted that usage since they deferred all name
is going wrong. */ lookup until instantiation time rather than doing unqualified
name lookup at template definition time; explain to the user what
is going wrong.
Note that we have the exact wording of the following message in
the manual (trouble.texi, node "Name lookup"), so they need to
be kept in synch. */
pedwarn ("there are no arguments to `%D' that depend on a template " pedwarn ("there are no arguments to `%D' that depend on a template "
"parameter, so a declaration of `%D' must be available", "parameter, so a declaration of `%D' must be available",
name, name); name, name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment