https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925
Marek Polacek changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925
--- Comment #6 from Marek Polacek ---
Author: mpolacek
Date: Mon Mar 19 20:34:45 2018
New Revision: 258660
URL: https://gcc.gnu.org/viewcvs?rev=258660&root=gcc&view=rev
Log:
PR c++/84925
* pt.c (enclosing_instantiation_of): Check
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925
Richard Biener changed:
What|Removed |Added
Priority|P3 |P1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925
--- Comment #5 from Marek Polacek ---
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -12898,7 +12898,7 @@ enclosing_instantiation_of (tree otctx)
for (; flambda_count < lambda_count && fn && LAMBDA_FUNCTION_P (fn);
fn = decl_function_contex
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925
--- Comment #4 from Marek Polacek ---
template
struct A {
static const int value = 0;
static auto constexpr fn = [] { return __PRETTY_FUNCTION__; };
};
template
int x = A::value;
auto s = x;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925
--- Comment #3 from Marek Polacek ---
Started with r251567.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|