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
5f942422
Commit
5f942422
authored
Jan 02, 2013
by
Jason Merrill
Committed by
Jason Merrill
Jan 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (check_default_argument): Use LOOKUP_IMPLICIT.
From-SVN: r194816
parent
e0c06fdd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
+15
-1
gcc/cp/ChangeLog
+2
-0
gcc/cp/decl.c
+1
-1
gcc/testsuite/g++.dg/overload/defarg7.C
+12
-0
No files found.
gcc/cp/ChangeLog
View file @
5f942422
2013-01-02 Jason Merrill <jason@redhat.com>
* decl.c (check_default_argument): Use LOOKUP_IMPLICIT.
PR c++/55032
PR c++/55245
* tree.c (build_cplus_array_type): Copy layout information
...
...
gcc/cp/decl.c
View file @
5f942422
...
...
@@ -10829,7 +10829,7 @@ check_default_argument (tree decl, tree arg)
parameter type. */
++
cp_unevaluated_operand
;
perform_implicit_conversion_flags
(
decl_type
,
arg
,
tf_warning_or_error
,
LOOKUP_
NORMAL
);
LOOKUP_
IMPLICIT
);
--
cp_unevaluated_operand
;
if
(
warn_zero_as_null_pointer_constant
...
...
gcc/testsuite/g++.dg/overload/defarg7.C
0 → 100644
View file @
5f942422
struct
A
{
A
(
const
char
*
);
explicit
A
(
const
int
*
);
};
void
f
(
A
a
=
0
);
int
main
()
{
f
();
}
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