代码搜索:Nested
找到约 7,462 项符合「Nested」的源代码
代码结果 7,462
www.eeworm.com/read/233448/4672519
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/233448/4672677
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/233448/4672720
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/233448/4672883
c nested2.c
template class CO {
class CI1 {
class CI2;
};
};
template
class CO::CI1::CI2 {};
www.eeworm.com/read/233448/4673227
c nested3.c
// { dg-do assemble }
// Origin: Chip Salzenberg
class Foo {
public:
class Bar;
};
class Foo::Bar {
public:
Bar() {}
};
www.eeworm.com/read/233448/4673398
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/233448/4673461
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/233448/4673641
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/233448/4673699
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;
www.eeworm.com/read/233448/4674152
c nested1.c
// { dg-do assemble }
template
struct X
{
T1 a;
struct Y
{
T2 x;
Y (T2 _x) { x=_x; }
};
};
template
struct X
{
T1 a;
struct Y
{
i