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

tromey at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 25 00:20:00 GMT 2007



------- Comment #1 from tromey at gcc dot gnu dot org  2007-04-25 01:20 -------
Hmm.  "gcc t.h" fails and prints an error:

opsy. gcc t.h
t.h: In function ‘f’:
t.h:2: error: expected declaration or statement at end of input

However it also leaves a t.h.gch file, which seems a bit weird.

Anyway I don't understand why this is a bug.  Surely this is a pathological
case that is reasonable for PCH to reject.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


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



More information about the Gcc-bugs mailing list