public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/19519] New: GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals
@ 2005-01-19  0:15 bauhaus at futureapps dot de
  2005-01-19  4:30 ` [Bug ada/19519] " giovannibajo at libero dot it
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bauhaus at futureapps dot de @ 2005-01-19  0:15 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2848 bytes --]

The following program triggers the bug box when
encoded as UTF-8.

It runs fine when used with Latin-1
characters. The compiler can test the robustness of your system
if you use iconv to encode the source text in EUC-JP
and then try to compile with -gnatiw -gnatWe. (I guess
that the characters below aren't used very frequently in
EUC-JP coded Ada source but still something seems to
be looping and consuming lots of memory in this case.)

with Ada.Text_IO;  use Ada.Text_IO;
--with Ada.Wide_Text_IO;  use Ada.Wide_Text_IO;  -- same effect

procedure oeaeue is

   type People is (Späherin,  -- a umlaut
                   -- Pförtner, -- o umlaut
                   -- Schüler, -- u umlaut
                   -- Spieß,  -- sharp s
                   Jedermann
                  );

   package People_IO is new Enumeration_IO(People);

begin
   for p in People'range loop
      People_IO.put(p);
      new_line;
   end loop;
end oeaeue;

cd /tmp/
gnatmake -gnatiw -gnatW8 oeaeue.adb
gcc-3.4 -c -gnatiw -gnatW8 oeaeue.adb
+===========================GNAT BUG DETECTED==============================+
| 3.4.2 (Debian 3.4.2-2) (i486-pc-linux-gnu) Constraint_Error s-wchcnv.adb:150
explicit raise|
| Error detected at oeaeue.adb:13:4                                        |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc-3.4 or gnatmake command that you entered.          |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases, 
so please double check that the problem can still 
be reproduced with the set of files listed.

oeaeue.adb
list may be incomplete
compilation abandoned
gnatmake: "oeaeue.adb" compilation error

Compilation exited abnormally with code 4 at Wed Jan 19 01:02:43


I've got the same results using GNAT 3.15p,
and GNAT 4.0.0. (20041203)
Linux strudel 2.4.18 #1 Fri May 2 17:22:29 CEST 2003 i686 GNU/Linux

-- 
           Summary: GNAT Bug Box when reading a program with UTF-8 encoded
                    enumeration literals
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bauhaus at futureapps dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug ada/19519] GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals
  2005-01-19  0:15 [Bug ada/19519] New: GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals bauhaus at futureapps dot de
@ 2005-01-19  4:30 ` giovannibajo at libero dot it
  2005-01-19 12:41 ` bauhaus at futureapps dot de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2005-01-19  4:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-01-19 04:30 -------
Would you please add the testcase to this bug as a file attachment?

-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug ada/19519] GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals
  2005-01-19  0:15 [Bug ada/19519] New: GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals bauhaus at futureapps dot de
  2005-01-19  4:30 ` [Bug ada/19519] " giovannibajo at libero dot it
@ 2005-01-19 12:41 ` bauhaus at futureapps dot de
  2005-02-25 15:35 ` bosch at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bauhaus at futureapps dot de @ 2005-01-19 12:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bauhaus at futureapps dot de  2005-01-19 12:40 -------
Created an attachment (id=7990)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7990&action=view)
test case as a file attachment, as requested

also triggered by this compiler:
+===========================GNAT BUG DETECTED==============================+
| 3.4.4 20041218 (prerelease) (Debian 3.4.3-6) (i486-pc-linux-gnu)	   |
| Constraint_Error s-wchcnv.adb:150 explicit raise			   |
| Error detected at oeaeue.adb:13:4					   |


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug ada/19519] GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals
  2005-01-19  0:15 [Bug ada/19519] New: GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals bauhaus at futureapps dot de
  2005-01-19  4:30 ` [Bug ada/19519] " giovannibajo at libero dot it
  2005-01-19 12:41 ` bauhaus at futureapps dot de
@ 2005-02-25 15:35 ` bosch at gcc dot gnu dot org
  2005-03-18 11:52 ` cvs-commit at gcc dot gnu dot org
  2005-03-18 12:39 ` charlet at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: bosch at gcc dot gnu dot org @ 2005-02-25 15:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-25 04:33:05
               date|                            |


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug ada/19519] GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals
  2005-01-19  0:15 [Bug ada/19519] New: GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals bauhaus at futureapps dot de
                   ` (2 preceding siblings ...)
  2005-02-25 15:35 ` bosch at gcc dot gnu dot org
@ 2005-03-18 11:52 ` cvs-commit at gcc dot gnu dot org
  2005-03-18 12:39 ` charlet at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-18 11:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-03-18 11:51 -------
Subject: Bug 19519

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	charlet@gcc.gnu.org	2005-03-18 11:50:32

Modified files:
	gcc/ada        : namet.adb 

Log message:
	2005-03-17  Robert Dewar  <dewar@adacore.com>
	
	PR ada/19519
	
	* namet.adb (Copy_One_Character): Set proper wide character encoding
	for upper half character if we have upper half encoding.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/namet.adb.diff?cvsroot=gcc&r1=1.10&r2=1.11



-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug ada/19519] GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals
  2005-01-19  0:15 [Bug ada/19519] New: GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals bauhaus at futureapps dot de
                   ` (3 preceding siblings ...)
  2005-03-18 11:52 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-18 12:39 ` charlet at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: charlet at gcc dot gnu dot org @ 2005-03-18 12:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From charlet at gcc dot gnu dot org  2005-03-18 12:39 -------
Fixed.

Arno

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-03-18 12:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-19  0:15 [Bug ada/19519] New: GNAT Bug Box when reading a program with UTF-8 encoded enumeration literals bauhaus at futureapps dot de
2005-01-19  4:30 ` [Bug ada/19519] " giovannibajo at libero dot it
2005-01-19 12:41 ` bauhaus at futureapps dot de
2005-02-25 15:35 ` bosch at gcc dot gnu dot org
2005-03-18 11:52 ` cvs-commit at gcc dot gnu dot org
2005-03-18 12:39 ` charlet at gcc dot gnu dot 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).