c/352: Digraphs should not be enabled with -std=iso9899:1990
Joseph Myers
jsm28@cam.ac.uk
Tue Jun 27 05:56:00 GMT 2000
>Number: 352
>Category: c
>Synopsis: Digraphs should not be enabled with -std=iso9899:1990
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Tue Jun 27 05:56:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Joseph S. Myers
>Release: 2.96
>Organization:
none
>Environment:
System: Linux decomino 2.2.16 #1 Thu Jun 8 00:26:22 UTC 2000 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
>Description:
GCC, both C compiler and preprocessor, should not honour digraphs in
strict ISO/IEC 9899:1990 mode.
>How-To-Repeat:
See testcase c90-digraph-1.c in
<URL: http://gcc.gnu.org/ml/gcc-patches/2000-06/msg00898.html >. The
quiet change involved in digraph support, tested by this testcase, is
described in ISO/IEC 9899:1990/Amd.1:1995(E) Annex H.1 (page 40). The
testcase fails with gcc-ss-20000626.
>Fix:
Add flags for digraph support in the C compiler and the preprocessor,
and disable digraph support for -std=iso9899:1990 and -ansi (maybe
also -traditional). Do whatever the right thing is when preprocessing
C++ and other non-C languages.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list