[Bug pch/30702] New: PCH vs not closing a function in a header

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Feb 4 18:35:00 GMT 2007


t.h:
int f(void)
{

--------- cut -----
t.c
#include <t.h>

return 0;
}

--------- cut -----
gcc t.c
works
but
gcc t.h && gcc t.c

fails to compile t.h.
As far as I can tell this is not a regression


-- 
           Summary: PCH vs not closing a function in a header
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: pch
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30702



More information about the Gcc-bugs mailing list