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

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

 



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

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux