------- Comment #1 from hjl dot tools at gmail dot com  2009-05-14 00:42 -------
4.0 branch is closed. Gcc 4.1.2 gave

[...@gnu-3 tmp]$ cat u.cc
union Foo {
    struct { float a,b,c; };
    const char* x;
};

Foo foo = { .0f, .0f, .0f };
Foo foo1 = { "foo" };
[...@gnu-3 tmp]$ gcc -c u.cc
u.cc:7: error: cannot convert ‘const char*’ to ‘float’ in initialization
[...@gnu-3 tmp]$ 


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40136

Reply via email to