public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17734] New: gfortran should accept "# <line number>" cpp output
@ 2004-09-29 18:46 schnetter at aei dot mpg dot de
2004-09-29 19:08 ` [Bug fortran/17734] " schnetter at aei dot mpg dot de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-09-29 18:46 UTC (permalink / raw)
To: gcc-bugs
According to the cpp manual (e.g.
http://gcc.gnu.org/onlinedocs/gcc-3.4.2/cpp/Line-Control.html), a line
consisting of
# <line number>
where <line number> is a line number, is legal cpp output. gfortran rejects
this as "unknown preprocessor token". It does accept a line like
# <line number> <file name>
It should also accept the former.
--
Summary: gfortran should accept "# <line number>" cpp output
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schnetter at aei dot mpg dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17734
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/17734] gfortran should accept "# <line number>" cpp output
2004-09-29 18:46 [Bug fortran/17734] New: gfortran should accept "# <line number>" cpp output schnetter at aei dot mpg dot de
@ 2004-09-29 19:08 ` schnetter at aei dot mpg dot de
2004-09-29 21:32 ` schnetter at aei dot mpg dot de
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-09-29 19:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schnetter at aei dot mpg dot de 2004-09-29 19:08 -------
Looking at "scanner.c", I see that gfortran also does not check whether the
given file name actually starts with a quote character, and does not handle
escaped quote characters in file names.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17734
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/17734] gfortran should accept "# <line number>" cpp output
2004-09-29 18:46 [Bug fortran/17734] New: gfortran should accept "# <line number>" cpp output schnetter at aei dot mpg dot de
2004-09-29 19:08 ` [Bug fortran/17734] " schnetter at aei dot mpg dot de
@ 2004-09-29 21:32 ` schnetter at aei dot mpg dot de
2004-09-29 22:35 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: schnetter at aei dot mpg dot de @ 2004-09-29 21:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schnetter at aei dot mpg dot de 2004-09-29 21:32 -------
Created an attachment (id=7242)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7242&action=view)
patch
2004-09-29 Erik Schnetter <schnetter@aei.mpg.de>
* scanner.c (preprocessor_line): Accept preprocessor lines without
file names. Check file names for closing quotes. Handle escaped
quotes in file names.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17734
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/17734] gfortran should accept "# <line number>" cpp output
2004-09-29 18:46 [Bug fortran/17734] New: gfortran should accept "# <line number>" cpp output schnetter at aei dot mpg dot de
2004-09-29 19:08 ` [Bug fortran/17734] " schnetter at aei dot mpg dot de
2004-09-29 21:32 ` schnetter at aei dot mpg dot de
@ 2004-09-29 22:35 ` pinskia at gcc dot gnu dot org
2004-09-29 22:57 ` pinskia at gcc dot gnu dot org
2004-10-04 15:55 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-29 22:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-29 22:35 -------
As usually can you post your patch to gcc-patches@ and fortran@, the patch looks right but I don't
know gfortran front-end that well.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2004-09-29 22:35:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17734
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/17734] gfortran should accept "# <line number>" cpp output
2004-09-29 18:46 [Bug fortran/17734] New: gfortran should accept "# <line number>" cpp output schnetter at aei dot mpg dot de
` (2 preceding siblings ...)
2004-09-29 22:35 ` pinskia at gcc dot gnu dot org
@ 2004-09-29 22:57 ` pinskia at gcc dot gnu dot org
2004-10-04 15:55 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-29 22:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-29 22:57 -------
Patch here: <http://gcc.gnu.org/ml/fortran/2004-09/msg00280.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17734
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/17734] gfortran should accept "# <line number>" cpp output
2004-09-29 18:46 [Bug fortran/17734] New: gfortran should accept "# <line number>" cpp output schnetter at aei dot mpg dot de
` (3 preceding siblings ...)
2004-09-29 22:57 ` pinskia at gcc dot gnu dot org
@ 2004-10-04 15:55 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-04 15:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-04 15:55 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17734
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-10-04 15:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-29 18:46 [Bug fortran/17734] New: gfortran should accept "# <line number>" cpp output schnetter at aei dot mpg dot de
2004-09-29 19:08 ` [Bug fortran/17734] " schnetter at aei dot mpg dot de
2004-09-29 21:32 ` schnetter at aei dot mpg dot de
2004-09-29 22:35 ` pinskia at gcc dot gnu dot org
2004-09-29 22:57 ` pinskia at gcc dot gnu dot org
2004-10-04 15:55 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).