------- Comment #9 from H9XLrv5oXVNvHiUI at spambox dot us 2009-12-24 14:48 ------- I know if you move the function it links (btw your link asks me for an HTTP login), but if you follow the discussion in the newsgroup it was concluded that this (the above) is actually perfectly valid standard C++ code, and anyway I think at least the error the linker gives could be more descriptive. Also the fact that other compilers fail with this code it's just because it's fairly rarely used code. For instance, Open Watcom compiled and linked the code perfectly fine without issues (and the executable was working).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38392