[Bug fortran/20889] type in a structure-constructor differs from type in derived-type-def

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 09:06 ---
Fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25018] Segfault with simple expression

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25018] Segfault with simple expression

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25018

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/20864] different types not diagnosed correctly

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 20864

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/19362] ICE in fold_convert, at fold-const.c:1998

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #8 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 19362

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/23152] namelist can't contain an assumed size array

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 23152

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/25066] SIZE tag not allowed in WRITE statement

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25066

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/25053] FORMAT and NML keywords conflict

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25053

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/25391] Module derived type issue

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25391

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/20862] format statement outside procedure

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #2 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 20862

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/25068] [4.0/4.1] IOSTAT should be default integer when -std=f95

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #10 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25068

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
   

[Bug fortran/20244] internal compiler error: in fold_convert, at fold-const.c:2003

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #15 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 20244

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
   

[Bug fortran/25064] namelist I/O statement shouldn't have an I/O list

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25064

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/25067] segfault on READ statement with FMT=* and REC

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25067

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug libfortran/25307] internal read with end=label aborts

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #12 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25307

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
   

[Bug fortran/20889] type in a structure-constructor differs from type in derived-type-def

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 20889

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/25063] EOR cannot appear in WRITE statement

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25063

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/25069] namelist group name already used

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 09:07 ---
Subject: Bug 25069

Author: pault
Date: Mon Dec 26 09:07:27 2005
New Revision: 109061

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109061
Log:
2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
*resolve.c(resolve_structure_cons): Do not attempt to convert
the type of mismatched pointer type components, except when
the constructor component is BT_UNKNOWN; emit error instead.

PR fortran/25018
* expr.c (check_inquiry): Return FAILURE if there is no symtree to
provide a name. Error/warning for assumed character length argument
to LEN for an initialization expression, using GFC_GNU_STD. Add an
argument to flag that the expression is not restricted.
(check_init_expr): Improve the message for a failing variable.
(gfc_match_init_expr): Call check_enquiry again to make sure that
unsimplified expressions are not causing unnecessary errors.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
* interface.c (gfc_compare_types): Broken into two.
(gfc_compare_derived_types): Second half of gfc_compare_types with
corrections for a missing check that module name is non-NULL and
a check for private components.
* symbol.c (gfc_free_dt_list): New function.
(gfc_free_namespace): Call gfc_free_dt_list.
* resolve.c (resolve_symbol): Build the list of derived types in the
symbols namespace.
* gfortran.h: Define the structure type gfc_dt_list.  Add a new field,
derived_types to gfc_namespace.  Provide a prototye for the new
function gfc_compare_derived_types.
* trans_types.c (gfc_get_derived_type): Test for the derived type being
available in the host namespace. In this case, the host backend
declaration is used for the structure and its components.  If an
unbuilt, equal structure that is not use associated is found in the
host namespace, build it there and then.  On exit,traverse the
namespace of the derived type to see if there are equal but unbuilt.
If so, copy the structure and its component declarations.
(copy_dt_decls_ifequal): New functions to copy declarations to other
equal structure types.

PR fortran/20862
* io.c (gfc_match_format): Make the appearance of a format statement
in a module specification block an error.

PR fortran/23152
* match.c (gfc_match_namelist): Set assumed shape arrays in
namelists as std=GFC_STD_GNU and assumed size arrays as an
unconditional error.

PR fortran/25069
* match.c (gfc_match_namelist): Set the respecification of a USE
associated namelist group as std=GFC_STD_GNU.  Permit the concatenation
on no error.

PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067
PR fortran/25068
PR fortran/25307
* io.c (resolve_tag): Change std on IOSTAT != default integer to
GFC_STD_GNU and change message accordingly.  Add same error for
SIZE.
(match_dt_element, gfortran.h): Add field err_where to gfc_dt and
set it when tags are being matched.
(gfc_resolve_dt): Remove tests that can be done before resolution
and add some of the new ones here.
(check_io_constraints): New function that checks for most of the
data transfer constraints. Some of these were previously done in
match_io, from where this function is called, and some were done
in gfc_resolve_dt.
(match_io): Remove most of the tests of constraints and add the
call to check_io_constraints.

2005-12-26  Paul Thomas  <[EMAIL PROTECTED]>

PR fortran/20889
* gfortran.dg/pointer_component_type_1.f90: New test.

PR fortran/25018
* gfortran.dg/initialization_1.f90: New test.
* gfortran.dg/enum_5.f90: Change dg-error to new message.
* gfortran.dg/g77/980616-0.f: The same.

PR fortran/19362
PR fortran/20244
PR fortran/20864
PR fortran/25391
*gfortran.dg/used_dummy_types_1.f90: New test.
*gfortran.dg/used_dummy_types_2.f90: New test.
*gfortran.dg/used_dummy_types_3.f90: New test.
*gfortran.dg/used_dummy_types_4.f90: New test.
*gfortran.dg/used_dummy_types_5.f90: New test.

PR fortran/23152
* gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST
group already being USE associated.
* gfortran.dg/assumed_shape_nml.f90: New test.
* gfortran.dg/assumed_size_nml.f90: New test.

PR fortran/20862
PR fortran/25053
PR fortran/25063
PR fortran/25064
PR fortran/25066
PR fortran/25067

[Bug fortran/19362] ICE in fold_convert, at fold-const.c:1998

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #9 from pault at gcc dot gnu dot org  2005-12-26 09:10 ---
Fixed on trunk and 4.1


-- 

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=19362



[Bug fortran/20244] internal compiler error: in fold_convert, at fold-const.c:2003

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #16 from pault at gcc dot gnu dot org  2005-12-26 09:10 ---
fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/20864] different types not diagnosed correctly

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 12:17 ---
Fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25391] Module derived type issue

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2005-12-26 12:18 ---
Fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


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



[Bug fortran/20862] format statement outside procedure

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #3 from pault at gcc dot gnu dot org  2005-12-26 12:18 ---
Fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25069] namelist group name already used

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 13:15 ---
Fixed on trunk and 4.1


-- 

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=25069



[Bug fortran/25053] FORMAT and NML keywords conflict

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 13:16 ---
fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25063] EOR cannot appear in WRITE statement

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 13:16 ---
fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25064] namelist I/O statement shouldn't have an I/O list

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2005-12-26 13:17 ---
Fixed on trunka nd 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25066] SIZE tag not allowed in WRITE statement

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 13:17 ---
fixed on trunka nd 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25067] segfault on READ statement with FMT=* and REC

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #4 from pault at gcc dot gnu dot org  2005-12-26 13:18 ---
fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug fortran/25068] [4.0/4.1] IOSTAT should be default integer when -std=f95

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #11 from pault at gcc dot gnu dot org  2005-12-26 13:18 ---
Fixed on trunk and 4.1


-- 

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=25068



[Bug fortran/23152] namelist can't contain an assumed size array

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2005-12-26 13:19 ---
Fixed on trunk and 4.1


-- 

pault at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug c/25567] New: 4 * set but never used

2005-12-26 Thread dcb314 at hotmail dot com
I just tried to compile the gcc-4.2 snapshot 20051224 with the Intel C
compiler. It said

1.

../../src/gcc-4.2-20051224/gcc/c-decl.c(4486): remark #593: variable
"type_as_written" was set but
never used

The source code is

tree type_as_written;

I have read the source code, and I agree with the compiler.
The local variable is only ever written to. Suggest delete local variable.

2.

../../src/gcc-4.2-20051224/gcc/tree-cfg.c(3083): remark #593: variable "src"
was set but never used

The source code is

  basic_block new_bb, after_bb, dest, src;

More of the same.

3.

../../src/gcc-4.2-20051224/gcc/tree-outof-ssa.c(1843): remark #593: variable
"changed" was set but
never used

The source code is

  bool changed;

More of the same.

4.

../../src/gcc-4.2-20051224/gcc/tree-ssa-copy.c(352): remark #593: variable
"lhs" was set but never
used

The source code is

  tree lhs, rhs;

More of the same.


-- 
   Summary: 4 * set but never used
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-linux-gnu


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



[Bug middle-end/25568] New: [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread ghazi at gcc dot gnu dot org
I'm getting an RTL checking bootstrap failure on i686-unknown-linux-gnu.  The
bootstrap dies in stage2 like so:

/home/ghazi/tmpdisk/gcc-testing/42/build/./prev-gcc/xgcc
-B/home/ghazi/tmpdisk/gcc-testing/42/build/./prev-gcc/
-B/usr/local/i686-pc-linux-gnu/bin/ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
-DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1  -I.
-I../../egcc-SVN20051225/zlib -O2 -g -fomit-frame-pointer -c -o
libz_a-deflate.o `test -f 'deflate.c' || echo
'../../egcc-SVN20051225/zlib/'`deflate.c
../../egcc-SVN20051225/zlib/deflate.c: In function 'deflateInit2_':
../../egcc-SVN20051225/zlib/deflate.c:312: internal compiler error: RTL check:
expected code 'const_int', have 'const_double' in simplify_shift_const_1, at
combine.c:8923

This is a regression.


-- 
   Summary: [4.2 regression] RTL checking bootstrap failure on i686-
unknown-linux-gnu
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Keywords: ice-checking
  Severity: normal
  Priority: P3
 Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ghazi at gcc dot gnu dot org


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



[Bug libfortran/19303] Unformatted record header is 4-bytes on 32-bit targets

2005-12-26 Thread milan at cmm dot ki dot si


--- Comment #17 from milan at cmm dot ki dot si  2005-12-26 15:54 ---
(In reply to comment #16)
> Created an attachment (id=10296)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10296&action=view) [edit]
> Patch to change delimitters to 4 bytes for unformatted records
> 
> This is nearly the same patch that I posted before except for the head of the
> subversion repository.
> 

I tried this one, but is now already out of date. I just made a hand patch of
4.1.0-beta20051223 and it seems to be OK. When will this be in the 4.1
snapshots, so I don't need to patch it by hand?


-- 


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



Re: [Bug middle-end/25568] New: [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread Graham Stott

ghazi at gcc dot gnu dot org wrote:

I'm getting an RTL checking bootstrap failure on i686-unknown-linux-gnu.  The
bootstrap dies in stage2 like so:

/home/ghazi/tmpdisk/gcc-testing/42/build/./prev-gcc/xgcc
-B/home/ghazi/tmpdisk/gcc-testing/42/build/./prev-gcc/
-B/usr/local/i686-pc-linux-gnu/bin/ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
-DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1  -I.
-I../../egcc-SVN20051225/zlib -O2 -g -fomit-frame-pointer -c -o
libz_a-deflate.o `test -f 'deflate.c' || echo
'../../egcc-SVN20051225/zlib/'`deflate.c
../../egcc-SVN20051225/zlib/deflate.c: In function 'deflateInit2_':
../../egcc-SVN20051225/zlib/deflate.c:312: internal compiler error: RTL check:
expected code 'const_int', have 'const_double' in simplify_shift_const_1, at
combine.c:8923

This is a regression.




The follow patch should fixit
Index: combine.c
===
--- combine.c   (revision 109050)
+++ combine.c   (working copy)
@@ -8919,6 +8919,7 @@
  && (new = simplify_const_binary_operation (ASHIFT, result_mode,
 XEXP (varop, 1),
 GEN_INT (count))) != 0
+ && GET_CODE (new) == CONST_INT
  && merge_outer_ops (&outer_op, &outer_const, PLUS,
  INTVAL (new), result_mode, &complement_p))
{
@@ -8937,6 +8938,7 @@
  && (new = simplify_const_binary_operation (code, result_mode,
 XEXP (varop, 1),
 GEN_INT (count))) != 0
+ && GET_CODE (new) == CONST_INT
  && merge_outer_ops (&outer_op, &outer_const, XOR,
  INTVAL (new), result_mode, &complement_p))
{




[Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread graham dot stott at btinternet dot com


--- Comment #1 from graham dot stott at btinternet dot com  2005-12-26 
15:58 ---
Subject: Re:   New: [4.2 regression] RTL checking bootstrap
 failure on i686-unknown-linux-gnu

ghazi at gcc dot gnu dot org wrote:
> I'm getting an RTL checking bootstrap failure on i686-unknown-linux-gnu.  The
> bootstrap dies in stage2 like so:
> 
> /home/ghazi/tmpdisk/gcc-testing/42/build/./prev-gcc/xgcc
> -B/home/ghazi/tmpdisk/gcc-testing/42/build/./prev-gcc/
> -B/usr/local/i686-pc-linux-gnu/bin/ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
> -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1  -I.
> -I../../egcc-SVN20051225/zlib -O2 -g -fomit-frame-pointer -c -o
> libz_a-deflate.o `test -f 'deflate.c' || echo
> '../../egcc-SVN20051225/zlib/'`deflate.c
> ../../egcc-SVN20051225/zlib/deflate.c: In function 'deflateInit2_':
> ../../egcc-SVN20051225/zlib/deflate.c:312: internal compiler error: RTL check:
> expected code 'const_int', have 'const_double' in simplify_shift_const_1, at
> combine.c:8923
> 
> This is a regression.
> 
> 

The follow patch should fixit
Index: combine.c
===
--- combine.c   (revision 109050)
+++ combine.c   (working copy)
@@ -8919,6 +8919,7 @@
   && (new = simplify_const_binary_operation (ASHIFT, result_mode,
  XEXP (varop, 1),
  GEN_INT (count))) !=
0
+ && GET_CODE (new) == CONST_INT
   && merge_outer_ops (&outer_op, &outer_const, PLUS,
   INTVAL (new), result_mode, &complement_p))
 {
@@ -8937,6 +8938,7 @@
   && (new = simplify_const_binary_operation (code, result_mode,
  XEXP (varop, 1),
  GEN_INT (count))) !=
0
+ && GET_CODE (new) == CONST_INT
   && merge_outer_ops (&outer_op, &outer_const, XOR,
   INTVAL (new), result_mode, &complement_p))
 {


-- 


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



[Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread ghazi at gcc dot gnu dot org


--- Comment #2 from ghazi at gcc dot gnu dot org  2005-12-26 16:04 ---
I did a successful rtl bootstrap (--enable-checking=yes,rtl) as recently as:
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00388.html

So this is at most a few weeks old.


-- 


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



Re: [Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread Graham Stott

ghazi at gcc dot gnu dot org wrote:

--- Comment #2 from ghazi at gcc dot gnu dot org  2005-12-26 16:04 ---
I did a successful rtl bootstrap (--enable-checking=yes,rtl) as recently as:
http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00388.html

So this is at most a few weeks old.




It came in with Fridays update


[Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread graham dot stott at btinternet dot com


--- Comment #3 from graham dot stott at btinternet dot com  2005-12-26 
16:11 ---
Subject: Re:  [4.2 regression] RTL checking bootstrap
 failure on i686-unknown-linux-gnu

ghazi at gcc dot gnu dot org wrote:
> --- Comment #2 from ghazi at gcc dot gnu dot org  2005-12-26 16:04 ---
> I did a successful rtl bootstrap (--enable-checking=yes,rtl) as recently as:
> http://gcc.gnu.org/ml/gcc-testresults/2005-12/msg00388.html
> 
> So this is at most a few weeks old.
> 
> 

It came in with Fridays update


-- 


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



[Bug other/25567] 4 * set but never used

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2005-12-26 17:13 ---
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2005-12-26 17:13:04
   date||


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



[Bug middle-end/25459] [4.2 Regression] builtins.c:6283: ICE: in struct_equiv_block_eq, at struct-equiv.c:1149

2005-12-26 Thread danglin at gcc dot gnu dot org


--- Comment #5 from danglin at gcc dot gnu dot org  2005-12-26 18:01 ---
I don't know if this is fixed but the ICE no longer occurs as of about
2005-12-21. 


-- 


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



[Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2005-12-26 18:02 ---
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||build, ice-on-valid-code
   Last reconfirmed|-00-00 00:00:00 |2005-12-26 18:02:34
   date||
   Target Milestone|--- |4.2.0


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



[Bug middle-end/25459] [4.2 Regression] builtins.c:6283: ICE: in struct_equiv_block_eq, at struct-equiv.c:1149

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #6 from pinskia at gcc dot gnu dot org  2005-12-26 18:04 ---
I think this was fixed by:
2005-12-19  J"orn Rennecke <[EMAIL PROTECTED]>

* cfgcleanup.c: Temporarily revert patches for PR 20070 till Bernd
comes back.

So I am going to close this, even though it is going to come back.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


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



[Bug middle-end/25569] New: FAIL: gfortran.dg/g77/20010610.f -O3 -fomit-frame-pointer -funroll-loops

2005-12-26 Thread danglin at gcc dot gnu dot org
Executing on host: /mnt/gnu/gcc-3.3/objdir/stage3-gcc/testsuite/../gfortran
-B/m
nt/gnu/gcc-3.3/objdir/stage3-gcc/testsuite/../
/mnt/gnu/gcc-3.3/gcc/gcc/testsuit
e/gfortran.dg/g77/20010610.f   -O3 -fomit-frame-pointer -funroll-loops  
-pedant
ic-errors  -L/mnt/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs
-L/
mnt/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs
-L/mnt/gnu/gcc-3.
3/objdir/hppa64-hp-hpux11.11/./libiberty  -lm   -o ./20010610.exe(timeout =
300)
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gfortran.dg/g77/20010610.f: In function
'MAIN
__':
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gfortran.dg/g77/20010610.f:2: internal
compil
er error: in analyze_iv_to_split_insn, at loop-unroll.c:1674
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gfortran.dg/g77/20010610.f: In function
'MAIN
__':
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gfortran.dg/g77/20010610.f:2: internal
compil
er error: in analyze_iv_to_split_insn, at loop-unroll.c:1674
Please submit a full bug report,
with preprocessed source if appropriate.

Also,

Executing on host: /mnt/gnu/gcc-3.3/objdir/stage3-gcc/testsuite/../gfortran
-B/m
nt/gnu/gcc-3.3/objdir/stage3-gcc/testsuite/../
/mnt/gnu/gcc-3.3/gcc/gcc/testsuit
e/gfortran.dg/g77/20010610.f   -O3 -fomit-frame-pointer -funroll-all-loops
-finl
ine-functions   -pedantic-errors 
-L/mnt/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/
./libgfortran/.libs
-L/mnt/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/./libgfortran/
.libs -L/mnt/gnu/gcc-3.3/objdir/hppa64-hp-hpux11.11/./libiberty  -lm   -o
./2001
0610.exe(timeout = 300)
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gfortran.dg/g77/20010610.f: In function
'MAIN
__':
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gfortran.dg/g77/20010610.f:2: internal
compil
er error: in analyze_iv_to_split_insn, at loop-unroll.c:1674
Please submit a full bug report,
with preprocessed source if appropriate.

This bug appears to have been introduced between 2005-12-02 and 2005-12-23.


-- 
   Summary: FAIL: gfortran.dg/g77/20010610.f  -O3 -fomit-frame-
pointer -funroll-loops
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


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



[Bug rtl-optimization/25569] [4.2 Regression] FAIL: gfortran.dg/g77/20010610.f -O3 -fomit-frame-pointer -funroll-loops

2005-12-26 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  Component|middle-end  |rtl-optimization
   Keywords||ice-on-valid-code
Summary|FAIL:   |[4.2 Regression] FAIL:
   |gfortran.dg/g77/20010610.f  |gfortran.dg/g77/20010610.f
   |-O3 -fomit-frame-pointer -  |-O3 -fomit-frame-pointer -
   |funroll-loops   |funroll-loops
   Target Milestone|--- |4.2.0


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



[Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread grahams at gcc dot gnu dot org


--- Comment #5 from grahams at gcc dot gnu dot org  2005-12-26 18:58 ---
Subject: Bug 25568

Author: grahams
Date: Mon Dec 26 18:58:56 2005
New Revision: 109064

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109064
Log:

   PR middle-end/25568
   * combine.c (simplify_shift_const_1 ):Fix enable-checking
   rtl bootstrap failure.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/combine.c


-- 


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



[Bug c/25571] New: Internal compiler error in instantiate_virtual_regs_1, at function.c:3971

2005-12-26 Thread alessandro at dastor dot com
When I try to compile this source (the *.i and the *.c are the same beacuse
there aren't any include or whatever that can be processed by the
preprocessor):

int main(int ac, char **av) {
  int eflags;
  __asm__("pushfl\n"
  "movl *%%esp,%%ebx\n":"=e" (eflags):);
}

I get this output:

# gcc test02.c -o test02 -save-temps
test02.c: In function `main':
test02.c:5: Internal compiler error in instantiate_virtual_regs_1, at
function.c:3971
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
#


-- 
   Summary: Internal compiler error in instantiate_virtual_regs_1,
at function.c:3971
   Product: gcc
   Version: 3.2.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alessandro at dastor dot com
 GCC build triplet: Linux 2.4.26
  GCC host triplet: Linux 2.4.26
GCC target triplet: Linux 2.4.26


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



[Bug inline-asm/25571] Internal compiler error in instantiate_virtual_regs_1, at function.c:3971

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2005-12-26 20:31 ---
This is invalid code, 3.3 and above error out on it instead of producing an
ICE:
t.c: In function `main':
t.c:3: error: impossible constraint in `asm'


So this is fixed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
  Component|c   |inline-asm
 Resolution||FIXED
   Target Milestone|--- |3.3


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



[Bug fortran/25532] [gfortran, regression] ICE in gfc_conv_component_ref, at fortran/trans-expr.c:269

2005-12-26 Thread eedelman at gcc dot gnu dot org


--- Comment #4 from eedelman at gcc dot gnu dot org  2005-12-26 21:20 
---
Here's a reduced testcase:


module ModelParams
implicit none

type ReionizationParams
 real   :: fraction
end type ReionizationParams

type CAMBparams
 type(ReionizationParams) :: Reion
 end type CAMBparams

type(CAMBparams) CP
end module ModelParams


module ThermoData
use ModelParams
implicit none

contains

subroutine inithermo()
use ModelParams
if (0 < CP%Reion%fraction) then
end if
end subroutine inithermo

subroutine SetTimeSteps
if (0 < CP%Reion%fraction) then
end if
end subroutine SetTimeSteps

end module ThermoData



-- 


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



[Bug c++/25439] [4.0/4.1/4.2 regression] "template<> int A<0>" accepted

2005-12-26 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
   |dot org |
 Status|NEW |ASSIGNED


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



[Bug middle-end/25125] [4.1/4.2 Regression] (short) ((int)(unsigned short) + (int)) is done in the wrong type

2005-12-26 Thread kazu at gcc dot gnu dot org


--- Comment #12 from kazu at gcc dot gnu dot org  2005-12-26 23:00 ---
Subject: Bug 25125

Author: kazu
Date: Mon Dec 26 23:00:18 2005
New Revision: 109065

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109065
Log:
gcc/
PR tree-optimization/25125
* convert.c (convert_to_integer): Don't narrow the type of a
PLUX_EXPR or MINUS_EXPR if !flag_wrapv and the unwidened type
is signed.

gcc/testsuite/
PR tree-optimization/25125
* gcc.dg/vect/vect-7.c, gcc.dg/vect/vect-reduc-2char.c,
gcc.dg/vect/vect-reduc-2short.c: XFAIL.
* gcc.c-torture/execute/pr25125.c: New.

Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr25125.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/convert.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/vect/vect-7.c
trunk/gcc/testsuite/gcc.dg/vect/vect-reduc-2char.c
trunk/gcc/testsuite/gcc.dg/vect/vect-reduc-2short.c


-- 


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



[Bug middle-end/25125] [4.1 Regression] (short) ((int)(unsigned short) + (int)) is done in the wrong type

2005-12-26 Thread kazu at gcc dot gnu dot org


--- Comment #13 from kazu at gcc dot gnu dot org  2005-12-26 23:01 ---
Just checked in a patch for mainline (4.2.0).


-- 

kazu at gcc dot gnu dot org changed:

   What|Removed |Added

  Known to fail|4.1.0 4.2.0 |4.1.0
  Known to work|4.0.3   |4.0.3 4.2.0
Summary|[4.1/4.2 Regression] (short)|[4.1 Regression] (short)
   |((int)(unsigned short) +|((int)(unsigned short) +
   |(int)) is done in the wrong |(int)) is done in the wrong
   |type|type


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



[Bug c/25572] New: ppc64 -mminimal-toc trashes r30

2005-12-26 Thread anton at samba dot org
We found this problem when building a ppc64 Linux kernel. It turns out r30 was
not preserved in a function that was using a local TOC. The compiler used was:

gcc version 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)

Although it seems to reproduce on older toolchains too (eg 3.4).

pinskia cut the original test case down to:

/* Compile with -m64 -O2 -mminimal-toc */
int per_cpu__kstat;

int *f()
{
  int *__ptr;
  asm volatile(";%0":"=g"(__ptr):"0"(&per_cpu__kstat));
  return __ptr;
}

/*
.f:
ld 30,[EMAIL PROTECTED](2)
ld 9,.LC0-.LCTOC1(30)
mr 3,9
#APP
;3
#NO_APP

*/


-- 
   Summary: ppc64 -mminimal-toc trashes r30
   Product: gcc
   Version: 4.0.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anton at samba dot org
GCC target triplet: powerpc64-unknown-linux-gnu


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



[Bug target/25572] ppc64 -mminimal-toc trashes r30

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2005-12-27 00:18 ---
Confirmed, not a regression.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
  Component|c   |target
 Ever Confirmed|0   |1
   Keywords||wrong-code
  Known to fail||3.3.3 4.0.0 3.4.0 4.1.0
   ||4.2.0
   Last reconfirmed|-00-00 00:00:00 |2005-12-27 00:18:30
   date||


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



[Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #6 from pinskia at gcc dot gnu dot org  2005-12-27 00:23 ---
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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



[Bug libfortran/16991] [meta-bug] libgfortran does not build every where

2005-12-26 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Last reconfirmed|2005-04-16 17:30:38 |2005-12-27 00:38:08
   date||
   Target Milestone|4.0.3   |---


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



[Bug tree-optimization/13756] [tree-ssa] documentation missing

2005-12-26 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Last reconfirmed|2005-07-01 22:13:20 |2005-12-27 00:38:19
   date||
   Target Milestone|4.0.3   |---


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



[Bug rtl-optimization/25130] [4.1/4.2 Regression] miscompilation in GCSE

2005-12-26 Thread steven at gcc dot gnu dot org


--- Comment #16 from steven at gcc dot gnu dot org  2005-12-27 00:58 ---
Created an attachment (id=10557)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10557&action=view)
Make hash_rtx and exp_equiv_p take MEM_ATTRS into accoutn

The test cases don't fail with GCC 4.2 anymore, but with GCC 4.1 they both
still fail.  I think the right thing to do is to make the expressions not look
the same to the dataflow equations -- after all they _are_ not the same.

But with this patch I'm unsure what will happen with e.g. loads from different
fields of a union for which the MEM address looks the same.  The MEM_ATTRS will
be different, so with my patch we won't see them as equivalent loads, I think. 
But I haven't actually tested that.  I haven't even tested the patch yet
really, but it does make the wrong-code problem go away for me.


-- 


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



[Bug c++/25417] [4.1/4.2 Regression] internal compiler error in check_initializer; hits clisp

2005-12-26 Thread mmitchel at gcc dot gnu dot org


-- 

mmitchel at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
   |dot org |
 Status|NEW |ASSIGNED


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



[Bug middle-end/25125] [4.1 Regression] (short) ((int)(unsigned short) + (int)) is done in the wrong type

2005-12-26 Thread danglin at gcc dot gnu dot org


--- Comment #14 from danglin at gcc dot gnu dot org  2005-12-27 01:07 
---
Running /mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gcc.c-torture/execute/execute.exp
...
FAIL: gcc.c-torture/execute/pr25125.c execution,  -O2
FAIL: gcc.c-torture/execute/pr25125.c execution,  -O3 -fomit-frame-pointer
FAIL: gcc.c-torture/execute/pr25125.c execution,  -O3 -g
FAIL: gcc.c-torture/execute/pr25125.c execution,  -Os


-- 

danglin at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||danglin at gcc dot gnu dot
   ||org


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



[Bug middle-end/25125] [4.1 Regression] (short) ((int)(unsigned short) + (int)) is done in the wrong type

2005-12-26 Thread dave at hiauly1 dot hia dot nrc dot ca


--- Comment #15 from dave at hiauly1 dot hia dot nrc dot ca  2005-12-27 
01:41 ---
Subject: Re:  [4.1 Regression] (short) ((int)(unsigned short) + (int)) is done
in the wrong type

> --- Comment #14 from danglin at gcc dot gnu dot org  2005-12-27 01:07 
> ---
> Running /mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gcc.c-torture/execute/execute.exp
> ...
> FAIL: gcc.c-torture/execute/pr25125.c execution,  -O2
> FAIL: gcc.c-torture/execute/pr25125.c execution,  -O3 -fomit-frame-pointer
> FAIL: gcc.c-torture/execute/pr25125.c execution,  -O3 -g
> FAIL: gcc.c-torture/execute/pr25125.c execution,  -Os

Should have said this is on hppa2.0w-hp-hpux11.11.  The initial rtl
for function f is wrong:

(jump_insn 14 13 15 3 (set (pc)
(if_then_else (gt (reg:SI 98)
(const_int 0 [0x0]))
(label_ref 20)
(pc))) -1 (nil)
(expr_list:REG_BR_PROB (const_int 1355 [0x54b])
(nil)))
;; End of basic block 3, registers live: (nil)

;; Start of basic block 4, registers live: (nil)
(code_label 15 14 16 4 3 "" [0 uses])

(note 16 15 17 4 [bb 4] NOTE_INSN_BASIC_BLOCK)

(insn 17 16 18 4 (set (reg:SI 94 [ D.1834 ])
(const_int 32768 [0x8000])) -1 (nil)
(nil))


-- 


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



[Bug libfortran/25550] file data corrupted after reading end of file

2005-12-26 Thread jvdelisle at gcc dot gnu dot org


--- Comment #1 from jvdelisle at gcc dot gnu dot org  2005-12-27 04:00 
---
I have a fix for this.  Will submit shortly.


-- 

jvdelisle at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jvdelisle at gcc dot gnu dot
   |dot org |org
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2005-12-27 04:00:30
   date||


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



[Bug ada/25573] New: Incorrect result returning constrained subtype (slice) with non-trivial return expression

2005-12-26 Thread jeff at thecreems dot com
The library PNG_IO fails during elaboration while performing some sanity checks
on its internal functions.

This was created on i386-redhat-linux-gnu (Centos 4)

I have boiled this down to a pretty simple test case that looks like the issue
happens when a function is returning a constrained subtype of an unconstrained
array and it is doing so when building the return value from an expression.

The following code should print   abcd. Instead, it prints several garbage
characters.

with Text_IO;
with Interfaces; use Interfaces;
procedure Slice_Bug is

  subtype Slice_Type is String(1 .. 4);

  function identity(A : in Character) return Character is
  begin
return a;
  end identity;


  function Get_Slice return Slice_Type is
  begin
   return identity('a') & identity('b')  & identity('c') & identity('d');
  end Get_Slice;

begin
  Text_IO.Put_Line(Get_Slice);
end Slice_Bug;


Removing the constraint from the subtype makes this code work as expected.
Leaving the constraint in and doing a simple return "abcd" also works.


-- 
   Summary: Incorrect result returning constrained subtype (slice)
with non-trivial return expression
   Product: gcc
   Version: 4.0.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jeff at thecreems dot com


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



[Bug fortran/25532] [gfortran, regression] ICE in gfc_conv_component_ref, at fortran/trans-expr.c:269

2005-12-26 Thread pault at gcc dot gnu dot org


--- Comment #5 from pault at gcc dot gnu dot org  2005-12-27 05:53 ---
There are three different, temporary work-arounds:

(i) Remove all "use ModelParams" from the contained procedures;
(ii) Add a "use ModelParams" to subroutine SetTimeSteps; or
(iii) Change the order of the contained procedures.

In the meantime, I will sort out a solution.

Paul

> 
> 
> module ModelParams
> implicit none
> 
> type ReionizationParams
>  real   :: fraction
> end type ReionizationParams
> 
> type CAMBparams
>  type(ReionizationParams) :: Reion
>  end type CAMBparams
> 
> type(CAMBparams) CP
> end module ModelParams
> 
> 
> module ThermoData
> use ModelParams
> implicit none
> 
> contains
> 
> subroutine inithermo()
> use ModelParams
> if (0 < CP%Reion%fraction) then
> end if
> end subroutine inithermo
> 
> subroutine SetTimeSteps
> if (0 < CP%Reion%fraction) then
> end if
> end subroutine SetTimeSteps
> 
> end module ThermoData
> 
> 


-- 


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



[Bug c++/23172] [4.1/4.2 Regression] ICE on integer initialization, GNU extension

2005-12-26 Thread mmitchel at gcc dot gnu dot org


--- Comment #10 from mmitchel at gcc dot gnu dot org  2005-12-27 06:09 
---
Subject: Bug 23172

Author: mmitchel
Date: Tue Dec 27 06:09:13 2005
New Revision: 109075

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109075
Log:
PR c++/23171, c++/23172, c++/25417.
* c-decl.c (compound_literal_number): Remove.
(build_compound_literal): Use set_compound_literal_name.
* c-common.c (compound_literal_number): New variable.
(set_compound_literal_name): New function.
* c-common.h (set_compound_literal_name): Declare.

PR c++/23171, c++/23172, c++/25417.
* typeck.c (build_unary_op): Create temporary variables for
compound literals whose addresses are taken.
* init.c (expand_aggr_init_1): Use COMPOUND_LITERAL_P.
* decl.c (reshape_init_vector): Likewise.
(reshape_init): Give it external linkage.
(check_initializer): Use COMPOUND_LITERAL_P.
(initialize_artificial_var): Allow the initializer to be a
CONSTRUCTOR.
* call.c (make_temporary_var_for_ref_to_temp): Use
create_temporary_var.
* cp-tree.h (COMPOUND_LITERAL_P): New macro.
(rehape_init): Declare.
* typeck2.c (digest_init): Use COMPOUND_LITERAL_P.
* semantics.c (finish_compound_literal): Use reshape_init.

PR c++/23172
* g++.dg/ext/complit4.C: New test.

PR c++/25417
* g++.dg/ext/complit5.C: Likewise.

Added:
trunk/gcc/testsuite/g++.dg/ext/complit4.C
trunk/gcc/testsuite/g++.dg/ext/complit5.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-common.h
trunk/gcc/c-decl.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/init.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/25417] [4.1/4.2 Regression] internal compiler error in check_initializer; hits clisp

2005-12-26 Thread mmitchel at gcc dot gnu dot org


--- Comment #3 from mmitchel at gcc dot gnu dot org  2005-12-27 06:09 
---
Subject: Bug 25417

Author: mmitchel
Date: Tue Dec 27 06:09:13 2005
New Revision: 109075

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109075
Log:
PR c++/23171, c++/23172, c++/25417.
* c-decl.c (compound_literal_number): Remove.
(build_compound_literal): Use set_compound_literal_name.
* c-common.c (compound_literal_number): New variable.
(set_compound_literal_name): New function.
* c-common.h (set_compound_literal_name): Declare.

PR c++/23171, c++/23172, c++/25417.
* typeck.c (build_unary_op): Create temporary variables for
compound literals whose addresses are taken.
* init.c (expand_aggr_init_1): Use COMPOUND_LITERAL_P.
* decl.c (reshape_init_vector): Likewise.
(reshape_init): Give it external linkage.
(check_initializer): Use COMPOUND_LITERAL_P.
(initialize_artificial_var): Allow the initializer to be a
CONSTRUCTOR.
* call.c (make_temporary_var_for_ref_to_temp): Use
create_temporary_var.
* cp-tree.h (COMPOUND_LITERAL_P): New macro.
(rehape_init): Declare.
* typeck2.c (digest_init): Use COMPOUND_LITERAL_P.
* semantics.c (finish_compound_literal): Use reshape_init.

PR c++/23172
* g++.dg/ext/complit4.C: New test.

PR c++/25417
* g++.dg/ext/complit5.C: Likewise.

Added:
trunk/gcc/testsuite/g++.dg/ext/complit4.C
trunk/gcc/testsuite/g++.dg/ext/complit5.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-common.h
trunk/gcc/c-decl.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/init.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/23171] [4.1/4.2 Regression] ICE on pointer initialization with C99 initializer

2005-12-26 Thread mmitchel at gcc dot gnu dot org


--- Comment #17 from mmitchel at gcc dot gnu dot org  2005-12-27 06:09 
---
Subject: Bug 23171

Author: mmitchel
Date: Tue Dec 27 06:09:13 2005
New Revision: 109075

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109075
Log:
PR c++/23171, c++/23172, c++/25417.
* c-decl.c (compound_literal_number): Remove.
(build_compound_literal): Use set_compound_literal_name.
* c-common.c (compound_literal_number): New variable.
(set_compound_literal_name): New function.
* c-common.h (set_compound_literal_name): Declare.

PR c++/23171, c++/23172, c++/25417.
* typeck.c (build_unary_op): Create temporary variables for
compound literals whose addresses are taken.
* init.c (expand_aggr_init_1): Use COMPOUND_LITERAL_P.
* decl.c (reshape_init_vector): Likewise.
(reshape_init): Give it external linkage.
(check_initializer): Use COMPOUND_LITERAL_P.
(initialize_artificial_var): Allow the initializer to be a
CONSTRUCTOR.
* call.c (make_temporary_var_for_ref_to_temp): Use
create_temporary_var.
* cp-tree.h (COMPOUND_LITERAL_P): New macro.
(rehape_init): Declare.
* typeck2.c (digest_init): Use COMPOUND_LITERAL_P.
* semantics.c (finish_compound_literal): Use reshape_init.

PR c++/23172
* g++.dg/ext/complit4.C: New test.

PR c++/25417
* g++.dg/ext/complit5.C: Likewise.

Added:
trunk/gcc/testsuite/g++.dg/ext/complit4.C
trunk/gcc/testsuite/g++.dg/ext/complit5.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-common.h
trunk/gcc/c-decl.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/init.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/25439] [4.0/4.1/4.2 regression] "template<> int A<0>" accepted

2005-12-26 Thread mmitchel at gcc dot gnu dot org


--- Comment #2 from mmitchel at gcc dot gnu dot org  2005-12-27 06:49 
---
Subject: Bug 25439

Author: mmitchel
Date: Tue Dec 27 06:49:21 2005
New Revision: 109076

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109076
Log:
PR c++/25439
* decl.c (grokdeclarator): Remove dead code.
* ptree.c (cxx_print_xnode): Handle BASELINK.
* parser.c (make_id_declarator): Add sfk parameter.  
(cp_parser_direct_declarator): Do not pass TYPE_DECLs to
make_id_declarator.
(cp_parser_declarator_id): Simplify BASELINKs here.
(cp_parser_member_declaration): Adjust calls to
make_id_declarator.
PR c++/25439
* g++.dg/parse/crash17.C: Adjust error markers.
* g++.dg/template/error20.C: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/error20.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/cp/ptree.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/crash17.C


-- 


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



[Bug c++/25439] [4.0/4.1/4.2 regression] "template<> int A<0>" accepted

2005-12-26 Thread mmitchel at gcc dot gnu dot org


--- Comment #3 from mmitchel at gcc dot gnu dot org  2005-12-27 06:50 
---
Subject: Bug 25439

Author: mmitchel
Date: Tue Dec 27 06:50:10 2005
New Revision: 109077

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109077
Log:
PR c++/25439
* decl.c (grokdeclarator): Remove dead code.
* ptree.c (cxx_print_xnode): Handle BASELINK.
* parser.c (make_id_declarator): Add sfk parameter.  
(cp_parser_direct_declarator): Do not pass TYPE_DECLs to
make_id_declarator.
(cp_parser_declarator_id): Simplify BASELINKs here.
(cp_parser_member_declaration): Adjust calls to
make_id_declarator.
PR c++/25439
* g++.dg/parse/crash17.C: Adjust error markers.
* g++.dg/template/error20.C: New test.

Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/error20.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/decl.c
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/cp/ptree.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/crash17.C


-- 


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



[Bug c/25574] New: GCC 3.4.4, assembler error with -march=k6-2 (i586)

2005-12-26 Thread elfabre at calconnex dot com
Hi,
just to bring the attention of gcc guys to this assembler error.
I came across recently when building Imagemagick under Gentoo and then found
out that others where experiencing the same exact error when compiling jpeg and
gimp-print.
Error looks like this:
{standard input}: Assembler messages:
{standard input}:17534: Error: value of ff7e too large for field of
1 bytes at d5f6

Gentoo bugzilla #108321 (http://bugs.gentoo.org/show_bug.cgi?id=108321), #30482
(http://bugs.gentoo.org/show_bug.cgi?id=30482) and #104953
(http://bugs.gentoo.org/show_bug.cgi?id=104953)  have a complete description of
it. Gcc 3.4.4 shows it but I also got it with Gcc 3.3.6.
You may wanna take a look at Gentoo bugzilla #24379
(http://bugs.gentoo.org/show_bug.cgi?id=24379).
Frankly, I do not think this bug is related to #9638 or #4199. As matter of
fact, they were closed a while ago but I still have troubles on AMD k6 with
more recent Gccs (which allegedly contain the related fixes).

Best regards,
 El Fabre


-- 
   Summary: GCC 3.4.4, assembler error with -march=k6-2 (i586)
   Product: gcc
   Version: 3.4.4
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: elfabre at calconnex dot com


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



[Bug c/25574] GCC 3.4.4, assembler error with -march=k6-2 (i586)

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2005-12-27 07:39 ---


*** This bug has been marked as a duplicate of 20653 ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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



[Bug target/20653] value too large for field on k6-2 (loop instruction)

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2005-12-27 07:39 ---
*** Bug 25574 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||elfabre at calconnex dot com


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



[Bug c++/20103] [4.0/4.1/4.2 regression] ICE in create_tmp_var with C99 style struct initializer

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #46 from pinskia at gcc dot gnu dot org  2005-12-27 07:43 
---
Ping, Ping, Ping, Mark this was the bug which had the patch which made use of
COMPOUND_LITERAL_EXPR in the C++ front-end and see really the correct approach
rather than the patches you have been looking at.


-- 


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



[Bug c++/20103] [4.0/4.1/4.2 regression] ICE in create_tmp_var with C99 style struct initializer

2005-12-26 Thread pinskia at gcc dot gnu dot org


--- Comment #47 from pinskia at gcc dot gnu dot org  2005-12-27 07:45 
---
I forgot one more thing is that this is still broken even after the patch for:
2005-12-26  Mark Mitchell  <[EMAIL PROTECTED]>

PR c++/23171, c++/23172, c++/25417.


-- 


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