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

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/tags/gnu-src/gcc-4.5.1/gcc-4.5.1-or32-1.0rc1/gcc/testsuite/g++.dg/template
    from Rev 301 to Rev 338
    Reverse comparison

Rev 301 → Rev 338

/explicit-args3.C
0,0 → 1,12
// PR c++/37177
 
template <class T>
struct A { };
 
template <class T>
void operator+(T, T); // { dg-error "class or enum" }
 
int main()
{
operator+<int>; // { dg-error "cannot resolve" }
}
explicit-args3.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: vla1.C =================================================================== --- vla1.C (nonexistent) +++ vla1.C (revision 338) @@ -0,0 +1,9 @@ +// PR c++/29226 +// { dg-options "" } + +template +static int label (int w) +{ + sizeof(int[w]); +} +int a = label(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 338) @@ -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 338) @@ -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: typedef33.C =================================================================== --- typedef33.C (nonexistent) +++ typedef33.C (revision 338) @@ -0,0 +1,21 @@ +// Origin PR c++/43800 +// { dg-do compile } + +template +struct V +{ + typedef T t_type; +}; + +template +class J +{ + typedef typename V::t_type t_type; + const t_type& f(); // #0: +private: + t_type b; +}; + +template +const typename V::t_type& J::f() {return b;} // #1 +
typedef33.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 338) @@ -0,0 +1,3 @@ +// PR c++/18124 + +template