Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/other/crash-2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do compile } |
2 // { dg-options "-finline -finline-functions" } | |
3 // Contributed by Hans Buchmann <hans dot buchmann at fhso dot ch> | |
4 // PR c++/14033: ICE while inlining a function with incomplete parameter | |
5 | |
6 struct A; // { dg-message "forward declaration" } | |
7 void foo(A a) {} // { dg-error "incomplete" } | |
8 struct A {}; | |
9 | |
10 void bar(void) | |
11 { | |
12 foo(A()); | |
13 } |