http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53544
Harald Anlauf <anlauf at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #1 from Harald Anlauf <anlauf at gmx dot de> 2012-05-31 20:07:37 UTC --- Why don't you simply write namelist /bar/ ct ? Anyway, neither the NAG nor the Intel compiler accept your program: % nagfor pr53544.f90 NAG Fortran Compiler Release 5.3(854) Error: pr53544.f90, line 12: Syntax error detected at CT@% ***Malformed statement [NAG Fortran Compiler pass 1 error termination, 1 error] % ifort pr53544.f90 -V Intel(R) Fortran Compiler XE for applications running on IA-32, Version 12.1.4.319 Build 20120410 Copyright (C) 1985-2012 Intel Corporation. All rights reserved. FOR NON-COMMERCIAL USE ONLY Intel(R) Fortran 12.1-2100 pr53544.f90(12): error #5082: Syntax error, found '%' when expecting one of: , <END-OF-STATEMENT> ; / namelist /bar/ ct%a, ct%b -------------------^ pr53544.f90(12): error #5082: Syntax error, found '%' when expecting one of: , <END-OF-STATEMENT> ; / namelist /bar/ ct%a, ct%b -------------------------^ pr53544.f90(12): error #6404: This name does not have a type, and must have an explicit type. [A] namelist /bar/ ct%a, ct%b --------------------^ pr53544.f90(12): error #6404: This name does not have a type, and must have an explicit type. [B] namelist /bar/ ct%a, ct%b --------------------------^ compilation aborted for pr53544.f90 (code 1)