8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/cvt17.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

21 lines
488 B
C

// Build don't link:
// GROUPS passed conversions
// cvt file
// Message-Id: <9305210124.AA02409@kato.cs.brown.edu>
// From: pcm@cs.brown.edu (Peter C. McCluskey)
// Subject: illegal code compiles silently
// Date: Thu, 20 May 93 21:24:22 -0400
class Point {};
class Line_Segment{ public: Line_Segment(const Point&){} };
class Node { public: Point Location(){ Point p; return p; } };
main()
{
Node** node1;
Line_Segment(node1->Location()); // intended (*node1)// ERROR - .*
}