]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lex.c (unqualified_fn_lookup_error): Mention that the error message needs to be kept...
authorWolfgang Bangerth <bangerth@dealii.org>
Tue, 22 Jul 2003 17:51:05 +0000 (11:51 -0600)
committerWolfgang Bangerth <bangerth@gcc.gnu.org>
Tue, 22 Jul 2003 17:51:05 +0000 (11:51 -0600)
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

gcc/cp/ChangeLog
gcc/cp/lex.c

index 8f37c7e872340d96229916a945815c4032be8c28..55e3127a91eac8d09b298a8f21d4a7865840924d 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR c++/11614
index e39797754262abfec492948c0f2c7d3ee0fbee16..82a03e5ecce654f8783fabad821cd265bda0f28f 100644 (file)
@@ -708,8 +708,14 @@ unqualified_fn_lookup_error (tree name)
     {
       /* In a template, it is invalid to write "f()" or "f(3)" if no
         declaration of "f" is available.  Historically, G++ and most
-        other compilers accepted that usage; explain to the user what
-        is going wrong.  */
+        other compilers accepted that usage since they deferred all name
+        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 "
               "parameter, so a declaration of `%D' must be available", 
               name, name);