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