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
cfb71cad
Commit
cfb71cad
authored
Oct 10, 2014
by
Jason Merrill
Committed by
Jason Merrill
Oct 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* semantics.c (finish_id_expression): Check for error_mark_node.
From-SVN: r216104
parent
1740f8a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/semantics.c
+5
-1
No files found.
gcc/cp/ChangeLog
View file @
cfb71cad
2014-10-10 Jason Merrill <jason@redhat.com>
* semantics.c (finish_id_expression): Check for error_mark_node.
2014-10-09 Jason Merrill <jason@redhat.com>
PR c++/63207
...
...
gcc/cp/semantics.c
View file @
cfb71cad
...
...
@@ -3272,7 +3272,11 @@ finish_id_expression (tree id_expression,
/* Disallow uses of local variables from containing functions, except
within lambda-expressions. */
if
(
outer_automatic_var_p
(
decl
))
decl
=
process_outer_var_ref
(
decl
,
tf_warning_or_error
);
{
decl
=
process_outer_var_ref
(
decl
,
tf_warning_or_error
);
if
(
decl
==
error_mark_node
)
return
error_mark_node
;
}
/* Also disallow uses of function parameters outside the function
body, except inside an unevaluated context (i.e. decltype). */
...
...
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