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.