From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29204 invoked by alias); 15 Dec 2010 20:59:54 -0000 Received: (qmail 29182 invoked by uid 22791); 15 Dec 2010 20:59:53 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Dec 2010 20:59:48 +0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/46971] New: ICE on long class names X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 15 Dec 2010 20:59:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-12/txt/msg01815.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46971 Summary: ICE on long class names Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: tkoenig@gcc.gnu.org Reported by Andrew Benson on http://gcc.gnu.org/ml/fortran/2010-12/msg00100.html module Molecular_Abundances_Structure public type molecularAbundancesStructure double precision, allocatable, dimension(:) :: molecularValue end type molecularAbundancesStructure contains double precision function Molecules_Abundances(molecules) implicit none class(molecularAbundancesStructure), intent(in) :: molecules return end function Molecules_Abundances end module Molecular_Abundances_Structure Looking at gfc_new_symbol: Breakpoint 1, gfc_new_symbol ( name=0x7fffffffd5f0 "__class_molecular_abundances_structure_molecularabundancesstructure", ns=0x148b420) at ../../trunk/gcc/fortran/symbol.c:2551 2551 gfc_internal_error ("new_symbol(): Symbol name too long"); (gdb) p name $1 = 0x7fffffffd5f0 "__class_molecular_abundances_structure_molecularabundancesstructure" ... which, because we put _class_ before the name, is longer than the maximum symbol size GFC_MAX_SYMBOL_LEN.