[Bug c/17807] New: No warning/error for undefined local function.
rth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Oct 3 12:35:00 GMT 2004
int main(void)
{
auto int bar(int);
bar(5);
}
$ gcc z.c
/tmp/ccw5BsKp.o(.text+0x18): In function `main':
: undefined reference to `bar.0'
collect2: ld returned 1 exit status
Which isn't the best of error messages.
Mainline actually ICE's on this.
--
Summary: No warning/error for undefined local function.
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rth at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17807
More information about the Gcc-bugs
mailing list