[Bug fortran/29634] ICE in variable_decl, for function returning a derived type

2006-10-29 Thread fxcoudert at gcc dot gnu dot org


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2006-10-29 10:45:13
   date||


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



[Bug fortran/29634] ICE in variable_decl, for function returning a derived type

2006-11-01 Thread aldot at gcc dot gnu dot org


--- Comment #1 from aldot at gcc dot gnu dot org  2006-11-01 19:33 ---
(In reply to comment #0)
> The following gives an ICE:
> 
>   type foo
> integer :: i
>   end type foo
> 
>   interface fun_interface
> type(foo) function fun()
> end function fun
>   end interface
> 
> contains
> 
>   type(foo) function fun()
>   end function ieee_class_r4

ieee_class_r4? Shouldn't this be fun instead?


-- 


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



[Bug fortran/29634] ICE in variable_decl, for function returning a derived type

2006-11-01 Thread aldot at gcc dot gnu dot org


--- Comment #2 from aldot at gcc dot gnu dot org  2006-11-01 21:44 ---
For your initial testcase, Lahey talks about

Compiling program unit main at line 1:
 Interface body name(fun)
  1173-S: "SOURCE.F90", line 6: Derived type definition for 'foo' missing.
 Internal subprogram name()
  2007-W: "SOURCE.F90", line 12: No value assigned to function, entry, or
function result name of function subprogram.
  1712-S: "SOURCE.F90", line 12, column 22: 'fun' already used as an external
function name.
  1069-S: "SOURCE.F90", line 13, column 16: Name 'ieee_class_r4' specified in
END FUNCTION statement must be identical to function name specified in FUNCTION
statement.
Encountered 3 errors, 1 warning, 0 informations in file SOURCE.F90.
Compiling file SOURCE.F90.


With the proposed fix (the hunk against decl.c, the rest seems to be already
fixed on trunk) from Paul for PR 29539, we have

$ gfortran-4.3-HEAD -W -Wall -Wextra -c -o pr29634.o pr29634.f90
 In file pr29634.f90:12

  type(foo) function fun()
   1
Error: Syntax error in data declaration at (1)
 In file pr29634.f90:13

  end function ieee_class_r4
1
Error: Expecting END PROGRAM statement at (1)


Which doesn't sound optimal to me.


-- 


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



[Bug fortran/29634] ICE in variable_decl, for function returning a derived type

2006-11-05 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2006-11-05 22:16 ---
I'd better take it, since I submitted a patch for it!

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2006-10-29 10:45:13 |2006-11-05 22:16:55
   date||


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



[Bug fortran/29634] ICE in variable_decl, for function returning a derived type

2006-11-07 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2006-11-07 15:17 ---
Subject: Bug 29634

Author: pault
Date: Tue Nov  7 15:17:17 2006
New Revision: 118553

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118553
Log:
2006-11-07 Paul Thomas <[EMAIL PROTECTED]>

PR fortran/29539
PR fortran/29634
* decl.c (variable_decl): Add test for presence of proc_name.
* error.c (gfc_error_flag_test): New function.
* gfortran.h : Prototype for gfc_error_flag_test.

2006-11-07 Paul Thomas <[EMAIL PROTECTED]>

PR fortran/29539
* gfortran.dg/gfortran.dg/blockdata_3.f90: New test.

PR fortran/29634
* gfortran.dg/gfortran.dg/derived_function_interface_1.f90: New
test.

Added:
trunk/gcc/testsuite/gfortran.dg/blockdata_3.f90
trunk/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/error.c
trunk/gcc/fortran/gfortran.h
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/29634] ICE in variable_decl, for function returning a derived type

2006-11-10 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2006-11-10 17:08 ---
Subject: Bug 29634

Author: pault
Date: Fri Nov 10 17:08:11 2006
New Revision: 118658

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118658
Log:
2006-11-10  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/29539
PR fortran/29634
* decl.c (variable_decl): Add test for presence of proc_name.
(gfc_match_data_decl): Only emit error if there are none
already flagged.
* error.c (gfc_error_flag_test): New function.
* gfortran.h : Prototype for gfc_error_flag_test.

2006-11-10  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/29539
* gfortran.dg/gfortran.dg/blockdata_3.f90: New test.

PR fortran/29634
* gfortran.dg/gfortran.dg/derived_function_interface_1.f90: New test.

Added:
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/blockdata_3.f90
   
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/decl.c
branches/gcc-4_2-branch/gcc/fortran/error.c
branches/gcc-4_2-branch/gcc/fortran/gfortran.h
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug fortran/29634] ICE in variable_decl, for function returning a derived type

2006-11-10 Thread pault at gcc dot gnu dot org


--- Comment #6 from pault at gcc dot gnu dot org  2006-11-10 17:15 ---
Fixed on trunk and 4.2.

It will be fixed on 4.1 just as soon as I catch up with myself.

Paul


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug fortran/29634] ICE in variable_decl, for function returning a derived type

2006-11-30 Thread chaoyingfu at gcc dot gnu dot org


--- Comment #7 from chaoyingfu at gcc dot gnu dot org  2006-12-01 00:35 
---
Subject: Bug 29634

Author: chaoyingfu
Date: Fri Dec  1 00:32:38 2006
New Revision: 119391

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119391
Log:
Merged revisions 118545-118650 via svnmerge from 
svn+ssh://[EMAIL PROTECTED]/svn/gcc/trunk


  r118545 | burnus | 2006-11-07 05:27:53 -0800 (Tue, 07 Nov 2006) | 29 lines

  fortran/
  2006-11-06  Tobias Burnus  <[EMAIL PROTECTED]>

  PR fortran/29601
  * symbol.c (check_conflict, gfc_add_volatile): Add volatile support.
  * decl.c (match_attr_spec, gfc_match_volatile): Add volatile support.
  * gfortran.h (symbol_attribute): Add volatile_ to struct.
  * resolve.c (was_declared): Add volatile support.
  * trans-decl.c (gfc_finish_var_decl): Add volatile support.
  * match.h: Declare gfc_match_volatile.
  * parse.c (decode_statement): Recognize volatile.
  * modules.c (ab_attribute, attr_bits, mio_symbol_attribute):
Add volatile support.
  * dump-parse-tree.c (gfc_show_attr): Add volatile support.


  testsuite/
  2006-11-06  Tobias Burnus  <[EMAIL PROTECTED]>

  PR fortran/29601
  * gfortran.dg/volatile.f90: Add.
  * gfortran.dg/volatile2.f90: Add.
  * gfortran.dg/volatile3.f90: Add.
  * gfortran.dg/volatile4.f90: Add.
  * gfortran.dg/volatile5.f90: Add.
  * gfortran.dg/volatile6.f90: Add.
  * gfortran.dg/volatile7.f90: Add.

  r118546 | davidu | 2006-11-07 06:08:55 -0800 (Tue, 07 Nov 2006) | 3 lines

* config/mips/mips.h (ISA_HAS_PREFETCHX): Add ISA_MIPS32R2 to the
list.

  r118547 | jiez | 2006-11-07 06:24:58 -0800 (Tue, 07 Nov 2006) | 3 lines

* gcc.c (process_command): Treat -b as normal switch if its argument
has no dash.

  r118550 | davidu | 2006-11-07 06:28:08 -0800 (Tue, 07 Nov 2006) | 5 lines

* config/mips/mips.c (mips_rtx_cost_optimize_size): New table of
costs when optimizing for size.
(override_options): Use mips_rtx_cost_optimize_size table for cost
calculations.

  r118552 | jules | 2006-11-07 07:16:07 -0800 (Tue, 07 Nov 2006) | 6 lines

* floatformat.c (get_field): Fix segfault with little-endian word
order on 64-bit hosts.
(put_field): Likewise.
(min): Move definition.

  r118553 | pault | 2006-11-07 07:17:17 -0800 (Tue, 07 Nov 2006) | 17 lines

  2006-11-07 Paul Thomas <[EMAIL PROTECTED]>

PR fortran/29539
PR fortran/29634
* decl.c (variable_decl): Add test for presence of proc_name.
* error.c (gfc_error_flag_test): New function.
* gfortran.h : Prototype for gfc_error_flag_test.

  2006-11-07 Paul Thomas <[EMAIL PROTECTED]>

PR fortran/29539
* gfortran.dg/gfortran.dg/blockdata_3.f90: New test.

PR fortran/29634
* gfortran.dg/gfortran.dg/derived_function_interface_1.f90: New
test.

  r118554 | bkoz | 2006-11-07 08:55:49 -0800 (Tue, 07 Nov 2006) | 49 lines

  2006-11-07  Benjamin Kosnik  <[EMAIL PROTECTED]>

* include/ext/pb_ds/exception.hpp (pb_ds): Modify for -fno-exceptions.
(__throw_container_error): New. Conditionalize based on __EXCEPTIONS.
(__throw_insert_error): New.
(__throw_join_error): New.
(__throw_resize_error): New.
* include/ext/pb_ds/detail/resize_policy/
hash_prime_size_policy_imp.hpp: Use them.
* include/ext/pb_ds/detail/resize_policy/
hash_exponential_size_policy_imp.hpp: Same.
* include/ext/pb_ds/detail/resize_policy/
hash_load_check_resize_trigger_imp.hpp: Same.
* include/ext/pb_ds/detail/resize_policy/
hash_standard_resize_policy_imp.hpp: Same.
* include/ext/pb_ds/detail/cc_hash_table_map_/resize_fn_imps.hpp
* include/ext/pb_ds/detail/cc_hash_table_map_/
constructor_destructor_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/pat_trie_/insert_join_fn_imps.hpp
* include/ext/pb_ds/detail/pat_trie_/split_join_branch_bag.hpp
* include/ext/pb_ds/detail/pat_trie_/
constructors_destructor_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/bin_search_tree_/
constructors_destructor_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/bin_search_tree_/
split_join_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/gp_hash_table_map_/
insert_no_store_hash_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/gp_hash_table_map_/
resize_store_hash_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/gp_hash_table_map_/
insert_store_hash_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/gp_hash_table_map_/resize_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/gp_hash_table_map_/
constructor_destructor_fn_imps.hpp: Same.
* include/ext/pb_ds/detail/gp_hash_table_map_/
resize_no_store_hash_fn_imps.hpp: Sam