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 pch/30702] PCH vs not closing a function in a header



------- 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


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