Commit bfc54a27 by Jason Merrill Committed by Jason Merrill

re PR c++/44366 ([C++0x] g++ crashes when declaring a lambda expression using a…

re PR c++/44366 ([C++0x] g++ crashes when declaring a lambda expression using a typedef'd decltype.)

	PR c++/44366
	* g++.dg/cpp0x/decltype23.C: Move to...
	* g++.dg/diagnostic/parm1.C: ...here, and remove decltype.

From-SVN: r160483
parent f1a0b754
2010-06-09 Jason Merrill <jason@redhat.com>
PR c++/44366
* g++.dg/cpp0x/decltype23.C: Move to...
* g++.dg/diagnostic/parm1.C: ...here, and remove decltype.
2010-06-09 Janus Weil <janus@gcc.gnu.org>
PR fortran/44211
......
// PR c++/44366
// While printing the operand of decltype We were trying to print f as the
// While printing the operand of sizeof We were trying to print f as the
// scope of t, causing infinite recursion.
// { dg-options "-std=c++0x" }
template <typename T>
void f(T t, decltype(*t))
void f(T t, int(*)[sizeof(t)])
{
struct A { void g() {
foo; // { dg-error "foo" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment