ICE with -std=c++1y for: struct A { void foo(); }; template<typename T> void bar(T) { (A().foo)(); }
Started with r197248.
Author: jason Date: Wed Mar 5 19:25:37 2014 New Revision: 208352 URL: http://gcc.gnu.org/viewcvs?rev=208352&root=gcc&view=rev Log: PR c++/60409 * semantics.c (force_paren_expr): Only add a PAREN_EXPR to a dependent expression. Added: trunk/gcc/testsuite/g++.dg/cpp1y/regress1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c
Fixed.