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
ea55c915
Commit
ea55c915
authored
Aug 05, 2019
by
Jason Merrill
Committed by
Jason Merrill
Aug 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* semantics.c (force_paren_expr): Preserve location.
From-SVN: r274120
parent
55f863c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/cp/ChangeLog
+4
-0
gcc/cp/semantics.c
+4
-2
No files found.
gcc/cp/ChangeLog
View file @
ea55c915
2019-08-05 Jason Merrill <jason@redhat.com>
* semantics.c (force_paren_expr): Preserve location.
2019-08-02 Marek Polacek <polacek@redhat.com>
PR c++/91230 - wrong error with __PRETTY_FUNCTION__ and generic lambda.
...
...
gcc/cp/semantics.c
View file @
ea55c915
...
...
@@ -1745,14 +1745,16 @@ force_paren_expr (tree expr)
&&
TREE_CODE
(
expr
)
!=
SCOPE_REF
)
return
expr
;
location_t
loc
=
cp_expr_location
(
expr
);
if
(
TREE_CODE
(
expr
)
==
COMPONENT_REF
||
TREE_CODE
(
expr
)
==
SCOPE_REF
)
REF_PARENTHESIZED_P
(
expr
)
=
true
;
else
if
(
processing_template_decl
)
expr
=
build1
(
PAREN_EXPR
,
TREE_TYPE
(
expr
),
expr
);
expr
=
build1
_loc
(
loc
,
PAREN_EXPR
,
TREE_TYPE
(
expr
),
expr
);
else
{
expr
=
build1
(
VIEW_CONVERT_EXPR
,
TREE_TYPE
(
expr
),
expr
);
expr
=
build1
_loc
(
loc
,
VIEW_CONVERT_EXPR
,
TREE_TYPE
(
expr
),
expr
);
REF_PARENTHESIZED_P
(
expr
)
=
true
;
}
...
...
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