re PR c++/29003 (operator name accepted in typedef)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 9 Jun 2011 15:06:59 +0000 (15:06 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 9 Jun 2011 15:06:59 +0000 (15:06 +0000)
commit0d1d0dc8aa325982f4a07d79bce1a5b21e71d4ab
tree0bb6dc82d11dd690983bb00bc7850a6cd4bd4455
parent547fdef870a84b90382a9de0bf4aa9e85ba1003a
re PR c++/29003 (operator name accepted in typedef)

/cp
2011-06-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/29003
* decl.c (grokdeclarator): Reject operator names in typedefs.

/testsuite
2011-06-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/29003
* g++.dg/parse/error38.C: New.

From-SVN: r174846
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error38.C [new file with mode: 0644]