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
e4c4792d
Commit
e4c4792d
authored
Nov 20, 2014
by
Jason Merrill
Committed by
Jason Merrill
Nov 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* error.c (dump_expr): Avoid printing (*&i) for references.
From-SVN: r217899
parent
b3392804
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
gcc/cp/ChangeLog
+4
-0
gcc/cp/error.c
+7
-1
No files found.
gcc/cp/ChangeLog
View file @
e4c4792d
2014-11-20 Jason Merrill <jason@redhat.com>
* error.c (dump_expr): Avoid printing (*&i) for references.
2014-11-20 Ville Voutilainen <ville.voutilainen@gmail.com>
2014-11-20 Ville Voutilainen <ville.voutilainen@gmail.com>
PR c++/63959
PR c++/63959
...
...
gcc/cp/error.c
View file @
e4c4792d
...
@@ -2299,7 +2299,13 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags)
...
@@ -2299,7 +2299,13 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags)
TREE_TYPE
(
ttype
)))
TREE_TYPE
(
ttype
)))
{
{
if
(
TREE_CODE
(
ttype
)
==
REFERENCE_TYPE
)
if
(
TREE_CODE
(
ttype
)
==
REFERENCE_TYPE
)
dump_unary_op
(
pp
,
"*"
,
t
,
flags
);
{
STRIP_NOPS
(
op
);
if
(
TREE_CODE
(
op
)
==
ADDR_EXPR
)
dump_expr
(
pp
,
TREE_OPERAND
(
op
,
0
),
flags
);
else
dump_unary_op
(
pp
,
"*"
,
t
,
flags
);
}
else
else
dump_unary_op
(
pp
,
"&"
,
t
,
flags
);
dump_unary_op
(
pp
,
"&"
,
t
,
flags
);
}
}
...
...
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