https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
--- Comment #5 from Jason Merrill ---
Author: jason
Date: Thu Apr 14 20:14:44 2016
New Revision: 234990
URL: https://gcc.gnu.org/viewcvs?rev=234990=gcc=rev
Log:
PR c++/70543
* pt.c (value_dependent_expression_p) [VAR_DECL]: A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
Jason Merrill changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
Jason Merrill changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
Jason Merrill changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
Patrick Palka changed:
What|Removed |Added
CC||ppalka at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
Richard Biener changed:
What|Removed |Added
Keywords||rejects-valid
Target Milestone|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
--- Comment #2 from Oleg Endo ---
(In reply to Oleg Endo from comment #1)
>
> If the marked line is changed to
>
> static constexpr unsigned int value = calc<0> ();
>
> it compiles fine.
However, if doing that "trick" in the bigger
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70543
--- Comment #1 from Oleg Endo ---
A slightly reduced version:
#include
template struct X
{
template static constexpr
typename std::enable_if< I == 5, unsigned int>::type
calc (void)
{
return 0;
}
template static constexpr