URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [access2.C] - Rev 384
Compare with Previous | Blame | View Log
// { 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-error "" } private
};
int main()
{
Foo<int>(1);// { dg-error "" }
}