Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ceb86495
Commit
ceb86495
authored
Feb 06, 2013
by
Jason Merrill
Committed by
Jason Merrill
Feb 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* parser.c (cp_parser_enum_specifier): Check for error_mark_node.
From-SVN: r195818
parent
828e50c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletions
+7
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/parser.c
+1
-1
gcc/testsuite/g++.dg/parse/enum10.C
+2
-0
No files found.
gcc/cp/ChangeLog
View file @
ceb86495
2013-02-06 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_enum_specifier): Check for error_mark_node.
2013-02-05 Jason Merrill <jason@redhat.com>
PR c++/54122
...
...
gcc/cp/parser.c
View file @
ceb86495
...
...
@@ -14567,7 +14567,7 @@ cp_parser_enum_specifier (cp_parser* parser)
/*check_dependency=*/
true
,
/*ambiguous_decls=*/
NULL
,
input_location
);
if
(
name
)
if
(
name
&&
name
!=
error_mark_node
)
{
type
=
TREE_TYPE
(
name
);
if
(
TREE_CODE
(
type
)
==
TYPENAME_TYPE
)
...
...
gcc/testsuite/g++.dg/parse/enum10.C
0 → 100644
View file @
ceb86495
namespace
A
{
}
enum
A
::
B
{
};
// { dg-error "" }
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment