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
a8d7041a
Commit
a8d7041a
authored
Mar 16, 2011
by
Jason Merrill
Committed by
Jason Merrill
Mar 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* call.c (convert_default_arg): Use LOOKUP_IMPLICIT.
From-SVN: r171052
parent
51cdce9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/cp/ChangeLog
+4
-0
gcc/cp/call.c
+2
-2
No files found.
gcc/cp/ChangeLog
View file @
a8d7041a
2011-03-16 Jason Merrill <jason@redhat.com>
* call.c (convert_default_arg): Use LOOKUP_IMPLICIT.
2011-03-16 Jakub Jelinek <jakub@redhat.com>
* cp-objcp-common.c (cp_function_decl_explicit_p): Don't crash if
...
...
gcc/cp/call.c
View file @
a8d7041a
...
...
@@ -5803,7 +5803,7 @@ convert_default_arg (tree type, tree arg, tree fn, int parmnum)
if
(
TREE_CODE
(
arg
)
==
CONSTRUCTOR
)
{
arg
=
digest_init
(
type
,
arg
);
arg
=
convert_for_initialization
(
0
,
type
,
arg
,
LOOKUP_
NORMAL
,
arg
=
convert_for_initialization
(
0
,
type
,
arg
,
LOOKUP_
IMPLICIT
,
ICR_DEFAULT_ARGUMENT
,
fn
,
parmnum
,
tf_warning_or_error
);
}
...
...
@@ -5817,7 +5817,7 @@ convert_default_arg (tree type, tree arg, tree fn, int parmnum)
are never modified in place. */
if
(
!
CONSTANT_CLASS_P
(
arg
))
arg
=
unshare_expr
(
arg
);
arg
=
convert_for_initialization
(
0
,
type
,
arg
,
LOOKUP_
NORMAL
,
arg
=
convert_for_initialization
(
0
,
type
,
arg
,
LOOKUP_
IMPLICIT
,
ICR_DEFAULT_ARGUMENT
,
fn
,
parmnum
,
tf_warning_or_error
);
arg
=
convert_for_arg_passing
(
type
,
arg
);
...
...
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