blob: 1116da1d7960682bc679cf67e0d146cda3384017 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed access
// access file
// Message-Id: <9306301534.AA05072@sparc1.cnm.us.es>
// From: juando@cnm.us.es (Juan D. Martin)
// Subject: Compiler lets access to private constructor in template.
// Date: Wed, 30 Jun 93 17:34:10 +0200
template <class T> class Foo
{
private:
friend class Bar; // To avoid warning.
Foo(const T &v) {}; // { dg-message "" } private
};
int main()
{
Foo<int>(1);// { dg-error "" }
}