add link to GCC bug report

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@915 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2008-12-19 13:05:51 +00:00
parent 1651d21c5e
commit 0289a9789f

View file

@ -1185,3 +1185,34 @@ void DoStrongCompareTests( void )
}
// ----------------------------------------------------------------------------
// GCC bug
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38579
struct Policy
{
protected:
Policy() {}
Policy(const Policy&) {}
};
template<int I, class P>
struct BugGcc :
//protected P
public P
{
BugGcc() {}
template<int I2, class P2>
BugGcc(const BugGcc<I2, P2>& t) : P(t) {}
};
void foo()
{
BugGcc<0, Policy> f1;
BugGcc<1, Policy> f2(f1);
}