This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17807] New: No warning/error for undefined local function.
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2004 12:35:01 -0000
- Subject: [Bug c/17807] New: No warning/error for undefined local function.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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