OSDN Git Service

fix implicit int
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / access2.C
1 // Build don't link: 
2 // GROUPS passed access
3 // access file
4 // Message-Id: <9306301534.AA05072@sparc1.cnm.us.es>
5 // From: juando@cnm.us.es (Juan D. Martin)
6 // Subject: Compiler lets access to private constructor in template.
7 // Date: Wed, 30 Jun 93 17:34:10 +0200
8
9 template <class T> class Foo
10 {
11 private:
12     friend class Bar; // To avoid warning.
13       Foo(const T &v) {}; // ERROR - private
14 };
15
16
17 int main()
18 {
19     Foo<int>(1);// ERROR - 
20 }