Commit cb83a137 by Janus Weil

re PR fortran/48291 ([OOP] internal compiler error, new_symbol(): Symbol name too long)

2011-03-26  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/48291
	* class.c (get_unique_hashed_string): Adjust maximum allowable length
	for unique type string.

2011-03-26  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/48291
	* gfortran.dg/class_42.f03: New.

From-SVN: r171559
parent f7b8b261
2011-03-26 Janus Weil <janus@gcc.gnu.org>
PR fortran/48291
* class.c (get_unique_hashed_string): Adjust maximum allowable length
for unique type string.
2011-03-25 Kai Tietz <ktietz@redhat.com>
* scanner.c (preprocessor_line): Use filename_cmp
......
......@@ -137,9 +137,9 @@ get_unique_hashed_string (char *string, gfc_symbol *derived)
{
char tmp[2*GFC_MAX_SYMBOL_LEN+2];
get_unique_type_string (&tmp[0], derived);
/* If string is too long, use hash value in hex representation
(allow for extra decoration, cf. gfc_build_class_symbol)*/
if (strlen (tmp) > GFC_MAX_SYMBOL_LEN - 10)
/* If string is too long, use hash value in hex representation (allow for
extra decoration, cf. gfc_build_class_symbol & gfc_find_derived_vtab). */
if (strlen (tmp) > GFC_MAX_SYMBOL_LEN - 11)
{
int h = gfc_hash_value (derived);
sprintf (string, "%X", h);
......
2011-03-26 Janus Weil <janus@gcc.gnu.org>
PR fortran/48291
* gfortran.dg/class_42.f03: New.
2011-03-26 Ira Rosen <ira.rosen@linaro.org>
* gcc.dg/vect/vect-cselim-1.c: Fail on targets that don't support
......
! { dg-do compile }
!
! PR 48291: [4.6/4.7 Regression] [OOP] internal compiler error, new_symbol(): Symbol name too long
!
! Contributed by Adrian Prantl <adrian@llnl.gov>
module Overload_AnException_Impl
type :: Overload_AnException_impl_t
end type
contains
subroutine ctor_impl(self)
class(Overload_AnException_impl_t) :: self
end subroutine
end module
! { dg-final { cleanup-modules "Overload_AnException_Impl" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment