This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/17807] New: No warning/error for undefined local function.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]