aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorWolfgang Bangerth <bangerth@dealii.org>2003-07-22 11:51:05 -0600
committerWolfgang Bangerth <bangerth@gcc.gnu.org>2003-07-22 11:51:05 -0600
commitc5785644d1bcb74996e094d33f3d9a93afcc67a7 (patch)
tree54e93c0c6dbe6d95bf5da95225a1ee2ad7ba9c74 /gcc
parent5cf0212f36a7d6cb6d62bd99ab53ca64cc7d75cf (diff)
downloadgcc-c5785644d1bcb74996e094d33f3d9a93afcc67a7.zip
gcc-c5785644d1bcb74996e094d33f3d9a93afcc67a7.tar.gz
gcc-c5785644d1bcb74996e094d33f3d9a93afcc67a7.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/lex.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 8f37c7e..55e3127 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index e397977..82a03e5 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -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);