代码搜索:Nested
找到约 7,462 项符合「Nested」的源代码
代码结果 7,462
www.eeworm.com/read/366702/2868427
c nested3.c
template
class A {
template
class SubA {
int _k;
};
T1 _t1;
T2 _t2; // { dg-error "instantiated" }
};
template
class B { // { dg-error "" }
cl
www.eeworm.com/read/366702/2868669
c nested4.c
template struct A {
template struct B { typedef A X; };
};
template void f() {
typedef A::B::X X;
}
template void f ();
www.eeworm.com/read/366702/2868744
c nested1.c
/* PR c++/4633 */
/* { dg-do compile } */
// The 'class X' inside the template used to escape (somehow),
// so that the typedef claimed that it was redefining X.
template struct S ;
te
www.eeworm.com/read/366702/2868918
c nested5.c
// PR c++/33959
template struct A
{
struct C
{
template struct D {};
};
template static C::D bar (S const &);
};
struct E {};
int
main ()
{
E
www.eeworm.com/read/366702/2868997
c nested2.c
template class CO {
class CI1 {
class CI2;
};
};
template
class CO::CI1::CI2 {};
www.eeworm.com/read/366702/2869285
c nested3.c
// { dg-do assemble }
// Origin: Chip Salzenberg
class Foo {
public:
class Bar;
};
class Foo::Bar {
public:
Bar() {}
};
www.eeworm.com/read/366702/2869456
c nested4.c
// { dg-do assemble }
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 10 Aug 2000
// bug 372 We ICE'd on the out-of-class definiti
www.eeworm.com/read/366702/2869519
c nested1.c
// { dg-do assemble }
struct C
{
struct D
{
};
};
struct E
{
C& c;
void g();
};
void E::g()
{
c.D().f(); // { dg-error "" } no matching function
}
www.eeworm.com/read/366702/2869701
c nested2.c
// { dg-do assemble }
// by Bert Bril
struct M1 {
struct I {};
};
struct M2 {
struct I {};
struct J : virtual public
www.eeworm.com/read/366702/2869759
c nested1.c
// { dg-do assemble }
struct A {
struct B {
typedef long T;
int i;
};
};
struct C {
struct B {
typedef float T;
int i;
};
};
C::B::T a;