4 msglibstdc++ svn head broken
1 msggcc-4.4-20080425 is now available
3 msgMore on GCC Back Ends
2 msgFix for libstdc++/35887 broke build for single-...
1 msgARCtangent-A4 support
1 msggcc-4.3-20080424 is now available
19 msgSecurity vulernarability or security feature?
5 msgUse of option -fprofile-arcs is not compatible ...
2 msgQuestion about compilation details
35 msgRe: IRA for GCC 4.4
2 msgHelp me with the patterns
1 msggcc-4.2-20080423 is now available
10 msgdg-skip-if on powerpc when multiple cpu cflags ...
2 msgGCC port on PIC18xxx MCUs
2 msgI386.md: *_mixed and *_sse
8 msgno mul/div instruction
3 msgGoogle Summer of Code 2008: seven approved appl...

namelookup bug in gcc?
\ Balazs Dezso (22 Apr 2008)
. \ Joe Buck (22 Apr 2008)

3 msgHow to insert functions?
1 msggcc-4.1-20080421 is now available
Subject:namelookup bug in gcc?
Group:Gcc
From:Balazs Dezso
Date:22 Apr 2008


Hello all,

I have tested the following code on g++ 4.3, 4.2, 4.1 and 3.4.

#include <iostream>

struct B {
static const int x = 1;
};

struct A {
static const int x = 0;
template <typename A>
static void f() {
std::cerr << A::x << std::endl;
}
};

int main() {
A::f<B>();
return 0;
}

The gcc result:
0
While icc, msvc result:
1

Best, Balazs

-------------------------------------------------------


© 2004-2008 readlist.com