Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/crash12.C

raw
1 // { dg-do assemble }
2 // Bug: g++ dies instead of flagging this invalid.
3
4 inline float max(float x, float y) { return (x>y)?x:y; }
5
6 float b(float x, float y, float z)
7 {
8 float f = (y<x)?x:(max<y)?z:y; // { dg-error "" }
9 return f;
10 }