1 // { dg-do assemble } 2 // GROUPS passed conversions 3 // cvt file 4 // Message-Id: <9305210124.AA02409@kato.cs.brown.edu> 5 // From: pcm@cs.brown.edu (Peter C. McCluskey) 6 // Subject: illegal code compiles silently 7 // Date: Thu, 20 May 93 21:24:22 -0400 8 9 10 11 class Point {}; Line_Segment(const Point &)12class Line_Segment{ public: Line_Segment(const Point&){} }; Location()13class Node { public: Point Location(){ Point p; return p; } }; 14 main()15int main() 16 { 17 Node** node1; 18 Line_Segment(node1->Location()); // intended (*node1)// { dg-error "" } .* 19 } 20 21