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
fa4a66d1
Commit
fa4a66d1
authored
Jul 18, 2012
by
Jason Merrill
Committed by
Jason Merrill
Jul 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (instantiate_decl): Don't recheck substitutions.
From-SVN: r189640
parent
0e69fdf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
29 deletions
+4
-29
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+0
-29
No files found.
gcc/cp/ChangeLog
View file @
fa4a66d1
2012-07-18 Jason Merrill <jason@redhat.com>
* pt.c (instantiate_decl): Don't recheck substitutions.
2012-07-18 Paolo Carlini <paolo.carlini@oracle.com>
2012-07-18 Paolo Carlini <paolo.carlini@oracle.com>
Jason Merrill <jason@redhat.com>
Jason Merrill <jason@redhat.com>
...
...
gcc/cp/pt.c
View file @
fa4a66d1
...
@@ -18248,35 +18248,6 @@ instantiate_decl (tree d, int defer_ok,
...
@@ -18248,35 +18248,6 @@ instantiate_decl (tree d, int defer_ok,
if
(
TREE_CODE
(
d
)
==
FUNCTION_DECL
)
if
(
TREE_CODE
(
d
)
==
FUNCTION_DECL
)
maybe_instantiate_noexcept
(
d
);
maybe_instantiate_noexcept
(
d
);
/* Recheck the substitutions to obtain any warning messages
about ignoring cv qualifiers. Don't do this for artificial decls,
as it breaks the context-sensitive substitution for lambda op(). */
if
(
!
defer_ok
&&
!
DECL_ARTIFICIAL
(
d
))
{
tree
gen
=
DECL_TEMPLATE_RESULT
(
gen_tmpl
);
tree
type
=
TREE_TYPE
(
gen
);
/* Make sure that we can see identifiers, and compute access
correctly. D is already the target FUNCTION_DECL with the
right context. */
push_access_scope
(
d
);
if
(
TREE_CODE
(
gen
)
==
FUNCTION_DECL
)
{
tsubst
(
DECL_ARGUMENTS
(
gen
),
gen_args
,
tf_warning_or_error
,
d
);
tsubst_exception_specification
(
type
,
gen_args
,
tf_warning_or_error
,
d
,
/*defer_ok*/
true
);
/* Don't simply tsubst the function type, as that will give
duplicate warnings about poor parameter qualifications.
The function arguments are the same as the decl_arguments
without the top level cv qualifiers. */
type
=
TREE_TYPE
(
type
);
}
tsubst
(
type
,
gen_args
,
tf_warning_or_error
,
d
);
pop_access_scope
(
d
);
}
/* Defer all other templates, unless we have been explicitly
/* Defer all other templates, unless we have been explicitly
forbidden from doing so. */
forbidden from doing so. */
if
(
/* If there is no definition, we cannot instantiate the
if
(
/* If there is no definition, we cannot instantiate the
...
...
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