[Bug 704896] New: gcc links undefined static to external
https://bugzilla.novell.com/show_bug.cgi?id=704896 https://bugzilla.novell.com/show_bug.cgi?id=704896#c0 Summary: gcc links undefined static to external Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: giecrilj@stegny.2a.pl QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 A failure to find a static symbol should be a fatal error; the compiler should not go for a shopping spree to find something apparently relevant. Reproducible: Always Steps to Reproduce: 1. { rm a.out && echo>unu.c 'static int foo(); int main () { return +foo(); }' && echo >foo.c 'int foo () { return 0; }' && gcc unu.c foo.c; } 3. Actual Results: 1. unu.c:1:12: warning: ‘foo’ used but never defined a.out exists Expected Results: 1. unu.c:1:12: error: ‘foo’ used but never defined no a.out -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704896 https://bugzilla.novell.com/show_bug.cgi?id=704896#c Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |rguenther@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704896 https://bugzilla.novell.com/show_bug.cgi?id=704896#c1 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM --- Comment #1 from Richard Guenther <rguenther@novell.com> 2011-07-11 11:39:02 UTC --- Use -pedantic-errors. anyway: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49702 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com