Mass rebuild status with gcc-4.3.0-0.4 of rawhide-20071220

Hans de Goede j.w.r.degoede at hhs.nl
Fri Jan 4 10:13:46 UTC 2008


Braden McDaniel wrote:
> I think you misunderstood. This problem occurs in gcc 4.3.0-0.4; not in
> 4.1.2-36.
>

Well, my failed build was in Jakub's also fails with 4.1 list, notice 
that Jakub used 4.1.2-36 from rawhide not 4.1.2-33 from F-8 and -36 
contains some additional c++ strictness.

> I'd like to know more about this, too. Currently I'm not convinced it
> isn't a gcc bug.
> 
> Can someone with gcc 4.3 installed try compiling a few brief C++
> programs with g++?
> 
> For starters:
> 
>         typedef void void_t;
>         int f(void_t) { return 0; }
>         int main() { f(); }
> 
> If that works, try this one:

Doesn't work, as to be expected judging from Tom Troney's post:
test1.c++:2: error: ‘<anonymous>’ has incomplete type
test1.c++:2: error: invalid use of ‘void_t’
test1.c++: In function ‘int main()’:
test1.c++:2: error: too few arguments to function ‘int f(<type error>)’
test1.c++:3: error: at this point in file


> 
>         extern "C" {
>         typedef void void_t;
>         int f(void_t) { return 0; }
>         }
>         int main() { f(); }
> 

The same:

test2.c++:3: error: ‘<anonymous>’ has incomplete type
test2.c++:3: error: invalid use of ‘void_t’
test2.c++: In function ‘int main()’:
test2.c++:3: error: too few arguments to function ‘int f(<type error>)’
test2.c++:5: error: at this point in file


This is bad, as it breaks compatibility with including .c header files, 
really bad! Tom? Jakub?

Regards,

Hans




More information about the fedora-devel-list mailing list