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
b82972ca
Commit
b82972ca
authored
Jun 09, 2011
by
Jason Merrill
Committed by
Jason Merrill
Jun 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (build_non_dependent_expr): Use fold_non_dependent_expr_sfinae.
From-SVN: r174883
parent
b1623cc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
gcc/cp/ChangeLog
+2
-0
gcc/cp/pt.c
+1
-1
No files found.
gcc/cp/ChangeLog
View file @
b82972ca
2011-06-09 Jason Merrill <jason@redhat.com>
2011-06-09 Jason Merrill <jason@redhat.com>
* pt.c (build_non_dependent_expr): Use fold_non_dependent_expr_sfinae.
* parser.c (cp_parser_constant_expression): Just return the
* parser.c (cp_parser_constant_expression): Just return the
non-constant expression.
non-constant expression.
...
...
gcc/cp/pt.c
View file @
b82972ca
...
@@ -19124,7 +19124,7 @@ build_non_dependent_expr (tree expr)
...
@@ -19124,7 +19124,7 @@ build_non_dependent_expr (tree expr)
/* Try to get a constant value for all non-type-dependent expressions in
/* Try to get a constant value for all non-type-dependent expressions in
order to expose bugs in *_dependent_expression_p and constexpr. */
order to expose bugs in *_dependent_expression_p and constexpr. */
if
(
cxx_dialect
>=
cxx0x
)
if
(
cxx_dialect
>=
cxx0x
)
maybe_constant_value
(
fold_non_dependent_expr
(
expr
));
maybe_constant_value
(
fold_non_dependent_expr
_sfinae
(
expr
,
tf_none
));
#endif
#endif
/* Preserve OVERLOADs; the functions must be available to resolve
/* Preserve OVERLOADs; the functions must be available to resolve
...
...
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