public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29671]  New: preprocessor statements must start in column 1
@ 2006-10-31 11:42 franke dot daniel at gmail dot com
  2006-10-31 12:48 ` [Bug fortran/29671] " burnus at gcc dot gnu dot org
  2006-10-31 13:02 ` burnus at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: franke dot daniel at gmail dot com @ 2006-10-31 11:42 UTC (permalink / raw)
  To: gcc-bugs

Preprocessor statements (as if|else|endif|error|warning) must start in colum 1,
otherwise gfortran tries to handle them itself?!

$> cat pp.F90
PROGRAM test_preprocessor
 #error "EEE"         ! whitespace is significant
END PROGRAM

$> gfortran-4.3 -g -Wall pp.F90
 In file pp.F90:3

 #error "EEE"
1
Error: Unclassifiable statement at (1)


$> cat pp.F90
PROGRAM test_preprocessor
#error "EEE"
END PROGRAM

$> gfortran-4.3 -g -Wall pp.F90
pp.F90:3: error: #error "EEE"


Filed this as fortran report since gcc bails out as expected and both run
(afaik) the same preprocessor:

$> cat pp.c
int main() {
  #error "EEE"     /* whitespaces are not significant */
  return 0;
}

$> gcc-svn -g -Wall pp.c
pp.c:2:4: error: #error "EEE"


$> gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../../svn/gcc/configure
--prefix=/home/daniel/nfs/packages/i686-pc-linux-gnu/gcc-svn --disable-nls
--enable-threads=posix --enable-shared --enable-bootstrap --with-system-zlib
--program-suffix=-svn --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.3.0 20061030 (experimental)


-- 
           Summary: preprocessor statements must start in column 1
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: franke dot daniel at gmail dot com
  GCC host triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <bug-29671-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-03-03 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-31 11:42 [Bug fortran/29671] New: preprocessor statements must start in column 1 franke dot daniel at gmail dot com
2006-10-31 12:48 ` [Bug fortran/29671] " burnus at gcc dot gnu dot org
2006-10-31 13:02 ` burnus at gcc dot gnu dot org
     [not found] <bug-29671-4@http.gcc.gnu.org/bugzilla/>
2012-03-03 14:38 ` fxcoudert at gcc dot gnu.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).