1 // { dg-do assemble } 2 // GROUPS passed conversions 3 // cvt file 4 // Message-Id: <9208261851.AA16997@josquin.media.mit.edu> 5 // From: bilmes@media.mit.edu 6 // Subject: gcc (g++) 2.2.2 constructing nested class from external scope 7 // Date: Wed, 26 Aug 92 14:51:17 -0400 8 9 10 class foo { 11 12 class bar { 13 int i; 14 public: bar(int j)15 bar(int j) { i = j; } 16 }; 17 18 bar b; 19 public: foo()20 foo() : b(3) {} test(bar lb)21 void test(bar lb) { b = lb; } 22 }; 23 24 main()25int main() { 26 foo f; 27 f.test(34); // line 18 28 } 29