gcc/gcc/cp
Paul Thomas e7f79e123c re PR fortran/25018 (Segfault with simple expression)
2005-12-18  Paul Thomas  <pault@gcc.gnu.org>

	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.

2005-12-18  Paul Thomas  <pault@gcc.gnu.org>

	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.

From-SVN: r108753
2005-12-18 14:01:00 +00:00
..
ChangeLog re PR fortran/25018 (Segfault with simple expression) 2005-12-18 14:01:00 +00:00
ChangeLog-1993 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1994 Remove extra white spacing at end of lines. 2005-06-14 20:01:59 +00:00
ChangeLog-1995 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1996 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1997 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1998 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-1999 Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
ChangeLog-2000 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-2001 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-2002 split old changelogs by year 2005-05-18 14:10:35 +00:00
ChangeLog-2003 Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
ChangeLog-2004 Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
ChangeLog.tree-ssa Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
Make-lang.in sourcebuild.texi (all.build, [...]): Remove. 2005-12-07 22:10:30 +10:30
NEWS Canonicalize whitespace. 2005-06-15 00:41:35 +00:00
call.c call.c (build_conditional_expr): Print types in error messages. 2005-12-08 09:09:08 +00:00
cfns.gperf
cfns.h
class.c ggc.h (GGC_RESIZEVEC): New. 2005-12-02 12:37:15 +00:00
config-lang.in cp-lang.c (shadowed_var_for_decl, [...]): Move over to cp-objcp-common.c. 2005-07-09 08:45:09 -07:00
cp-gimplify.c * cp-gimplify.c (gimplify_cp_loop): Use fold_build3. 2005-12-07 21:50:00 +00:00
cp-lang.c dbxout.c: Include expr.h. 2005-09-09 14:00:49 -07:00
cp-objcp-common.c decl2.c (get_priority_info): Use XNEW, not xmalloc. 2005-12-02 11:21:28 +00:00
cp-objcp-common.h c-common.c, [...]: Revert 2005-11-18 lookup_name patch. 2005-11-21 13:27:29 -08:00
cp-tree.def re PR c++/23357 (ICE with __alignof__ on template arguments) 2005-09-16 02:50:56 -04:00
cp-tree.h re PR c++/24979 (DECL_MAIN_P is declared twice in cp-tree.h) 2005-11-27 22:37:06 +00:00
cvt.c re PR c++/8057 (Templates/non-templates and warnings about statements without effects) 2005-10-11 23:30:57 +00:00
cxx-pretty-print.c re PR c++/20293 (Wrong diagnostic for ambiguous access) 2005-11-14 01:45:19 +00:00
cxx-pretty-print.h call.c: Fix comment typo(s). 2005-07-21 10:33:31 +00:00
decl.c re PR c++/24138 (ICE with the code in PR 20407) 2005-12-06 19:45:00 +00:00
decl.h Update FSF address. 2005-06-25 00:59:41 +00:00
decl2.c decl2.c (get_priority_info): Use XNEW, not xmalloc. 2005-12-02 11:21:28 +00:00
dump.c tree-dump.h (dump_string_field): Declare. 2005-07-03 06:50:51 +00:00
error.c re PR c++/22238 (Awful error messages with virtual functions) 2005-11-22 17:04:12 +00:00
except.c Makefile.in: Set and use UNWIND_H. 2005-06-28 19:52:27 +00:00
expr.c * expr.c (cxx_expand_expr): Call gcc_unreachable instead of abort. 2005-12-07 21:55:19 +00:00
friend.c re PR c++/7874 (g++ finds friend functions defined in class-definition but not declared in the enclosing namespace) 2005-09-12 19:54:23 +00:00
g++spec.c decl2.c (get_priority_info): Use XNEW, not xmalloc. 2005-12-02 11:21:28 +00:00
init.c * decl2.c, init.c, typeck.c: Fix comment typos. 2005-11-05 20:34:08 +00:00
lang-specs.h Update FSF address. 2005-06-25 00:59:41 +00:00
lex.c decl2.c (get_priority_info): Use XNEW, not xmalloc. 2005-12-02 11:21:28 +00:00
mangle.c Fixes java/PR9861 2005-12-11 01:34:02 +00:00
method.c re PR c++/24580 (virtual base class cause exception not to be caught) 2005-11-16 15:22:00 -05:00
name-lookup.c name-lookup.c (lookup_name_real): Merge two if's. 2005-11-25 12:49:19 +00:00
name-lookup.h c-common.c, [...]: Revert 2005-11-18 lookup_name patch. 2005-11-21 13:27:29 -08:00
operators.def Update FSF address. 2005-06-25 00:59:41 +00:00
optimize.c re PR c++/17796 (Too many unused parameter warnings emitted.) 2005-10-14 16:36:49 +00:00
parser.c * parser.c, pt.c: Fix comment typos. 2005-12-16 05:55:45 +00:00
pt.c * parser.c, pt.c: Fix comment typos. 2005-12-16 05:55:45 +00:00
ptree.c In gcc/ 2005-12-05 Daniel Berlin <dberlin@dberlin.org> 2005-12-06 04:22:11 +00:00
repo.c decl2.c (get_priority_info): Use XNEW, not xmalloc. 2005-12-02 11:21:28 +00:00
rtti.c re PR c++/23947 (segv in reshape_init_r()) 2005-09-20 17:40:57 +02:00
search.c re PR c++/22618 (Template non-type arguments break class access protection) 2005-10-20 18:01:52 +00:00
semantics.c semantics.c (simplify_aggr_init_expr): Use buildN instead of build. 2005-12-02 17:04:00 +00:00
tree.c re PR c++/25300 (ICE with g++.dg/template/inherit.C) 2005-12-12 16:29:44 +00:00
typeck.c typeck.c (build_binary_op): Issue warning if either operand of a comparison operator is a string literal... 2005-12-06 14:05:58 +00:00
typeck2.c typeck2.c (process_init_constructor_union): Remove check for unnamed union members. 2005-11-25 12:52:12 +00:00