]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/50864 (ICE with decltype and "declval" from another namespace)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 8 Nov 2011 10:23:53 +0000 (10:23 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 8 Nov 2011 10:23:53 +0000 (10:23 +0000)
commit7fcefa55251f44ce3933fd4709f23d1b83accdf8
tree39b0e29d39ac466b25e2858b4fdd2c26bedf6590
parent295258228b461ae1ec71bd52d52759946a83faf4
re PR c++/50864 (ICE with decltype and "declval" from another namespace)

/cp
2011-11-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/50864
* parser.c (cp_parser_postfix_dot_deref_expression): Reject invalid
uses of '->' and '.' as postfix-expression in namespace scope.

/testsuite
2011-11-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/50864
* g++.dg/parse/template26.C: New.
* g++.dg/template/crash45.C: Adjust dg-error string.

From-SVN: r181151
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/template26.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash45.C