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
aef8bce8
Commit
aef8bce8
authored
Sep 02, 2009
by
Jason Merrill
Committed by
Jason Merrill
Sep 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* semantics.c (describable_type): Don't pretend to be in a template.
From-SVN: r151335
parent
301ea094
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
gcc/cp/ChangeLog
+3
-1
gcc/cp/semantics.c
+1
-5
No files found.
gcc/cp/ChangeLog
View file @
aef8bce8
2009-09-01 Jason Merrill <jason@redhat.com>
2009-09-02 Jason Merrill <jason@redhat.com>
* semantics.c (describable_type): Don't pretend to be in a template.
* ptree.c (cxx_print_type) [DECLTYPE_TYPE]: Print the expression.
...
...
gcc/cp/semantics.c
View file @
aef8bce8
...
...
@@ -4543,17 +4543,13 @@ describable_type (tree expr)
{
tree
type
=
NULL_TREE
;
/* processing_template_decl isn't set when we're called from the mangling
code, so bump it now. */
++
processing_template_decl
;
if
(
!
type_dependent_expression_p
(
expr
)
&&
!
type_unknown_p
(
expr
))
{
type
=
TREE_TYPE
(
expr
);
type
=
unlowered_expr_type
(
expr
);
if
(
real_lvalue_p
(
expr
))
type
=
build_reference_type
(
type
);
}
--
processing_template_decl
;
if
(
type
)
return
type
;
...
...
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