[Bug ada/31718] New: Incorrect handling of -gnatW8 and -gnatiw switches

2007-04-26 Thread david dot smith at gmail dot com
When compiling code that contains UTF-8 identifiers using the -gnatW8 and
-gnatiw switches, the compiler gives the following error:

"a-numeri.ads:25:04: illegal wide character"

This line contains the bracket notation version of the "pi" symbol in the
Ada.Numerics library.  The -gnatWx switch is supposed to add additional
recognized character encodings to the default bracket notation encoding.  The
bug is that the -gnatWx switch (together with -gnatiw) seems to disable the
bracket notation, causing a compile error on a file in the standard library
that uses that encoding method.


-- 
   Summary: Incorrect handling of -gnatW8 and -gnatiw switches
   Product: gcc
   Version: 4.1.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: david dot smith at gmail dot com


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



[Bug ada/31718] Incorrect handling of -gnatW8 and -gnatiw switches

2007-04-26 Thread david dot smith at gmail dot com


--- Comment #1 from david dot smith at gmail dot com  2007-04-26 20:59 
---
Created an attachment (id=13451)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13451&action=view)
Sample code that reproduces the bug.

Compiling this file with the switches -gnatW8 and -gnatiw reproduces the bug.


-- 


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