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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [nest13.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 nested-classes
// GROUPS passed nested-classes
// The bug here is that wer'e getting a message about inner not
// The bug here is that wer'e getting a message about inner not
// being a basetype itself.  I think it's because it's being
// being a basetype itself.  I think it's because it's being
// compared as the "inner" we knew about when it was forward-declared,
// compared as the "inner" we knew about when it was forward-declared,
// versus the "inner" we know about when it *has* been defined.
// versus the "inner" we know about when it *has* been defined.
class temp
class temp
{
{
public:
public:
        struct inner;
        struct inner;
        inner *trump()
        inner *trump()
        {
        {
                return (tt);
                return (tt);
        }
        }
        struct inner
        struct inner
        {
        {
                int ll;
                int ll;
        }*tt;
        }*tt;
};
};
 
 

powered by: WebSVN 2.1.0

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