aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/ctor1.C
blob: 65449f4c69155a7ea02c0e4c65005139d5a87cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
// PR C++/30303
// This used to ICE because we did not return NULL
// in grokfndecl when an error happened.

class A
{
  int i;
};

A::A() { A(); } /* { dg-error "definition of implicitly-declared" } */