OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [ptrmem3.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// GROUPS passed pointers-to-members
// GROUPS passed pointers-to-members
template class TemplA {
template class TemplA {
    T t;
    T t;
};
};
template class TemplB {
template class TemplB {
public:
public:
    typedef void (T::*TClassMethod)();
    typedef void (T::*TClassMethod)();
private:
private:
/*
/*
   This line should not crash cuz of the get_decl_list change in this:
   This line should not crash cuz of the get_decl_list change in this:
        * cp-tree.c (list_hash_lookup_or_cons): Make sure the type doesn't
        * cp-tree.c (list_hash_lookup_or_cons): Make sure the type doesn't
        have TYPE_PTRMEMFUNC_P set before we try to build its
        have TYPE_PTRMEMFUNC_P set before we try to build its
        CLASSTYPE_ID_AS_LIST.
        CLASSTYPE_ID_AS_LIST.
        (get_decl_list): Likewise, when trying to read it.
        (get_decl_list): Likewise, when trying to read it.
*/
*/
    TemplA Tmethod;
    TemplA Tmethod;
};
};
class C {
class C {
    int a;
    int a;
};
};
int main(int, char**) {
int main(int, char**) {
    TemplB test;
    TemplB test;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.