This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/30702] PCH vs not closing a function in a header
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2007 00:20:28 -0000
- Subject: [Bug pch/30702] PCH vs not closing a function in a header
- References: <bug-30702-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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