diff options
author | Lee Millward <lee.millward@gmail.com> | 2006-06-22 18:05:17 +0000 |
---|---|---|
committer | Lee Millward <lmillward@gcc.gnu.org> | 2006-06-22 18:05:17 +0000 |
commit | 9a171ca4b0532cfcb8d24a18f02097951c392845 (patch) | |
tree | ac3ffe37463bdf8967facdd97595d713eb3c80bb /gcc/cp | |
parent | 0ef902968099b4ddb1c272eec3c4db8870f25c0d (diff) | |
download | gcc-9a171ca4b0532cfcb8d24a18f02097951c392845.zip gcc-9a171ca4b0532cfcb8d24a18f02097951c392845.tar.gz gcc-9a171ca4b0532cfcb8d24a18f02097951c392845.tar.bz2 |
re PR c++/27821 (ICE with invalid ptr-to-member)
PR c++/27821
* decl.c (grokdeclarator): Return error_mark_node on
invalid uses of the scope resolution operator.
From-SVN: r114899
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 96d7123..fcea368 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -2,6 +2,10 @@ PR c++/27805 * typeck2.c (build_m_component_ref): Use error_operand_p. + + PR c++/27821 + * decl.c (grokdeclarator): Return error_mark_node on + invalid uses of the scope resolution operator. 2006-06-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c801111..5bb61cb 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8151,7 +8151,7 @@ grokdeclarator (const cp_declarator *declarator, { /* Something like struct S { int N::j; }; */ error ("invalid use of %<::%>"); - decl = NULL_TREE; + return error_mark_node; } else if (TREE_CODE (type) == FUNCTION_TYPE) { |