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
01c53a74
Commit
01c53a74
authored
Aug 23, 2019
by
Jason Merrill
Committed by
Jason Merrill
Aug 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* parser.c (cp_parser_nested_name_specifier_opt): Avoid redundant error.
From-SVN: r274893
parent
9bf6c63d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
gcc/cp/ChangeLog
+5
-0
gcc/cp/parser.c
+5
-3
No files found.
gcc/cp/ChangeLog
View file @
01c53a74
2019-08-22 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_nested_name_specifier_opt): Avoid redundant
error.
2019-08-23 Marek Polacek <polacek@redhat.com>
PR c++/91521 - wrong error with operator->.
...
...
gcc/cp/parser.c
View file @
01c53a74
...
...
@@ -6420,9 +6420,11 @@ cp_parser_nested_name_specifier_opt (cp_parser *parser,
==
CPP_SCOPE
))
{
token
=
cp_lexer_consume_token
(
parser
->
lexer
);
error_at
(
token
->
location
,
"%<decltype%> evaluates to %qT, "
"which is not a class or enumeration type"
,
token
->
u
.
tree_check_value
->
value
);
tree
dtype
=
token
->
u
.
tree_check_value
->
value
;
if
(
dtype
!=
error_mark_node
)
error_at
(
token
->
location
,
"%<decltype%> evaluates to %qT, "
"which is not a class or enumeration type"
,
dtype
);
parser
->
scope
=
error_mark_node
;
error_p
=
true
;
/* As below. */
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