[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#284973: g++-4.0: name lookup is broken



Package: g++-4.0
Version: 4.0-0pre2
Severity: important
Tags: experimental


Hi,

the following code doesn't compile:

struct A {};

namespace Boo
{
struct B
{
    friend struct A;

    B(const A&) {};
};
}

int main()
{
    A a;
    Boo::B b(a);
    return 0;
}

It compiles with g++ < 4.0.


Cheers,
André


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-k7
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages g++-4.0 depends on:
ii  gcc-4.0                     4.0-0pre2    The GNU C compiler
ii  gcc-4.0-base                4.0-0pre2    The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-19 GNU C Library: Shared libraries an
ii  libstdc++6-4.0-dev          4.0-0pre2    The GNU Standard C++ Library v3 (d

-- no debconf information



Reply to: