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
7cb4dfec
Commit
7cb4dfec
authored
Sep 10, 2009
by
Jason Merrill
Committed by
Jason Merrill
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* error.c (find_typenames_r): Also add decltypes.
From-SVN: r151586
parent
e00ded68
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/error.c
+4
-2
No files found.
gcc/cp/ChangeLog
View file @
7cb4dfec
2009-09-09 Jason Merrill <jason@redhat.com>
* error.c (find_typenames_r): Also add decltypes.
2009-09-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28293
...
...
gcc/cp/error.c
View file @
7cb4dfec
...
...
@@ -1159,7 +1159,8 @@ dump_template_decl (tree t, int flags)
}
/* find_typenames looks through the type of the function template T
and returns a VEC containing any typedefs or TYPENAME_TYPEs it finds. */
and returns a VEC containing any typedefs, decltypes or TYPENAME_TYPEs
it finds. */
struct
find_typenames_t
{
...
...
@@ -1176,7 +1177,8 @@ find_typenames_r (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED, void *data)
if
(
TYPE_P
(
*
tp
)
&&
is_typedef_decl
(
TYPE_NAME
(
*
tp
)))
/* Add the type of the typedef without any additional cv-quals. */
mv
=
TREE_TYPE
(
TYPE_NAME
(
*
tp
));
else
if
(
TREE_CODE
(
*
tp
)
==
TYPENAME_TYPE
)
else
if
(
TREE_CODE
(
*
tp
)
==
TYPENAME_TYPE
||
TREE_CODE
(
*
tp
)
==
DECLTYPE_TYPE
)
/* Add the typename without any cv-qualifiers. */
mv
=
TYPE_MAIN_VARIANT
(
*
tp
);
...
...
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