re PR c++/28211 (wrong linkage of template argument, diagnostic could be improved)
authorMark Mitchell <mark@codesourcery.com>
Mon, 16 Oct 2006 17:02:07 +0000 (17:02 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 16 Oct 2006 17:02:07 +0000 (17:02 +0000)
commit1082fd1084c181f2dfe01b482be65f00691f895f
treeb80e749957205e5b3b97ac86578383e1f1d210c0
parent0573fa421a606a6c76468c8bcd813e02f71283d1
re PR c++/28211 (wrong linkage of template argument, diagnostic could be improved)

PR c++/28211
* parser.c (cp_parser_template_argument): Don't consider "&var" a
possible constant-expression.
* pt.c (convert_nontype_argument): Refine handling of arguments of
pointer type.
PR c++/28211
* g++.dg/tc1/dr49.C: Tweak error messages.
* g++.dg/parse/template21.C: New test.

From-SVN: r117787
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/template21.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tc1/dr49.C