OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/gnu-src/gcc-4.2.2/gcc/testsuite/g++.dg/template
    from Rev 149 to Rev 154
    Reverse comparison

Rev 149 → Rev 154

/vla1.C
0,0 → 1,9
// PR c++/29226
// { dg-options "" }
 
template <bool>
static int label (int w)
{
sizeof(int[w]);
}
int a = label<false>(1);
vla1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: access13.C =================================================================== --- access13.C (nonexistent) +++ access13.C (revision 154) @@ -0,0 +1,16 @@ +// { dg-do compile } + +// Origin: Francesco Monica + +// PR c++/13262: Access checking during instantiation of static data +// member. + +template class Aclass { + private: + Aclass() {} + static Aclass instance; +}; + +template Aclass Aclass::instance; + +template class Aclass;
access13.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: crash42.C =================================================================== --- crash42.C (nonexistent) +++ crash42.C (revision 154) @@ -0,0 +1,10 @@ +// { dg-do compile } + +// PR c++/22153 + +template void foo(); + +template struct A +{ + template<> friend void foo<0>(); // { dg-error "" } +};
crash42.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: typename5.C =================================================================== --- typename5.C (nonexistent) +++ typename5.C (revision 154) @@ -0,0 +1,19 @@ +// { dg-do compile } + +// Origin: ariels@compugen.co.il + +// PR c++/2513: typename handling when scope is dependent as +// described in DR108. + +template struct Select { + typedef int Result; +}; + +template class Pred> struct FindType { + typedef typename Select::Result Result; +}; + +template struct Int { + template struct RightSize {}; + typedef typename FindType::Result type; +};
typename5.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: crash25.C =================================================================== --- crash25.C (nonexistent) +++ crash25.C (revision 154) @@ -0,0 +1,3 @@ +// PR c++/18124 + +template