public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53567] New: ICE: Error reporting routines re-entered on missing enum entry
@ 2012-06-03 19:50 lunow at math dot hu-berlin.de
2012-06-03 19:53 ` [Bug c++/53567] " lunow at math dot hu-berlin.de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: lunow at math dot hu-berlin.de @ 2012-06-03 19:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53567
Bug #: 53567
Summary: ICE: Error reporting routines re-entered on missing
enum entry
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: lunow@math.hu-berlin.de
C:\dev\projects\chess>gcc --std=c++11 gcc_test.cpp
'
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
I attached a minimal testcase.
I would expect something like:
C:\dev\projects\chess>gcc --std=c++11 gcc_test.cpp
gcc_test.cpp: In instantiation of 'EnumMask<EnumT> operator~(EnumT) [with EnumT
= A; typename IntegerType<sizeof (EnumT), ((EnumT)((-1)) > (EnumT)(0))>::type =
unsigne
d int]':
gcc_test.cpp:26:7: required from here
gcc_test.cpp:21:57: error: 'maskAll' is not a member of 'A'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/53567] ICE: Error reporting routines re-entered on missing enum entry
2012-06-03 19:50 [Bug c++/53567] New: ICE: Error reporting routines re-entered on missing enum entry lunow at math dot hu-berlin.de
@ 2012-06-03 19:53 ` lunow at math dot hu-berlin.de
2012-06-03 19:55 ` lunow at math dot hu-berlin.de
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: lunow at math dot hu-berlin.de @ 2012-06-03 19:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53567
--- Comment #1 from Daniel Lunow <lunow at math dot hu-berlin.de> 2012-06-03 19:53:00 UTC ---
Created attachment 27548
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27548
testcase
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/53567] ICE: Error reporting routines re-entered on missing enum entry
2012-06-03 19:50 [Bug c++/53567] New: ICE: Error reporting routines re-entered on missing enum entry lunow at math dot hu-berlin.de
2012-06-03 19:53 ` [Bug c++/53567] " lunow at math dot hu-berlin.de
@ 2012-06-03 19:55 ` lunow at math dot hu-berlin.de
2012-06-03 21:09 ` [Bug c++/53567] "ICE: Error reporting routines re-entered" " paolo.carlini at oracle dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: lunow at math dot hu-berlin.de @ 2012-06-03 19:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53567
--- Comment #2 from Daniel Lunow <lunow at math dot hu-berlin.de> 2012-06-03 19:55:11 UTC ---
Created attachment 27549
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27549
the real testcase
I accidently uploaded the wrong file, this is the correct file.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/53567] "ICE: Error reporting routines re-entered" on missing enum entry
2012-06-03 19:50 [Bug c++/53567] New: ICE: Error reporting routines re-entered on missing enum entry lunow at math dot hu-berlin.de
2012-06-03 19:53 ` [Bug c++/53567] " lunow at math dot hu-berlin.de
2012-06-03 19:55 ` lunow at math dot hu-berlin.de
@ 2012-06-03 21:09 ` paolo.carlini at oracle dot com
2012-06-06 23:02 ` paolo at gcc dot gnu.org
2012-06-06 23:12 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-06-03 21:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53567
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-06-03
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/53567] "ICE: Error reporting routines re-entered" on missing enum entry
2012-06-03 19:50 [Bug c++/53567] New: ICE: Error reporting routines re-entered on missing enum entry lunow at math dot hu-berlin.de
` (2 preceding siblings ...)
2012-06-03 21:09 ` [Bug c++/53567] "ICE: Error reporting routines re-entered" " paolo.carlini at oracle dot com
@ 2012-06-06 23:02 ` paolo at gcc dot gnu.org
2012-06-06 23:12 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu.org @ 2012-06-06 23:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53567
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-06-06 23:01:52 UTC ---
Author: paolo
Date: Wed Jun 6 23:01:45 2012
New Revision: 188283
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188283
Log:
/cp
2012-06-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53567
* typeck.c (cp_perform_integral_promotions): New, like
perform_integral_promotions but also takes a tsubst_flags_t parameter.
(pointer_diff): Add tsubst_flags_t parameter.
(decay_conversion, cp_default_conversion, cp_build_array_ref,
cp_build_binary_op, cp_build_unary_op, build_static_cast_1,
build_reinterpret_cast_1, cp_build_modify_expr,
convert_for_assignment): Adjust.
* optimize.c (build_delete_destructor_body): Adjust.
* init.c (expand_virtual_init, expand_default_init, build_new_1,
build_new, build_vec_delete_1, build_vec_init, build_delete): Adjust.
(construct_virtual_base): Adjust LOOKUP_COMPLAIN -> 0.
* class.c (build_base_path): Adjust.
* decl.c (compute_array_index_type, finish_destructor_body): Likewise.
* method.c (synthesized_method_walk): Adjust flag and complain.
* rtti.c (ifnonnull): Add tsubst_flags_t parameter.
(build_typeid, build_dynamic_cast_1): Adjust.
* except.c (initialize_handler_parm): Likewise.
* typeck2.c (process_init_constructor_record): Likewise.
* pt.c (tsubst_friend_class): Don't change flags.
* semantics.c (finish_goto_stmt, handle_omp_for_class_iterator,
finish_static_assert): Likewise.
* parser.c (cp_parser_lookup_name): Just pass 0 as flags to
lookup_name_real.
* call.c (build_op_delete_call): Add tsubst_flags_t parameter.
(convert_like_real, convert_arg_to_ellipsis, convert_for_arg_passing):
Adjust.
(standard_conversion): Adjust LOOKUP_COMPLAIN -> 0.
(implicit_conversion): Mask out tf_error with a FIXME.
(build_user_type_conversion_1, build_new_op_1, build_over_call): Use
complain & tf_error instead of flags & LOOKUP_COMPLAIN.
* cvt.c (cp_convert_to_pointer, convert_to_pointer_force,
build_up_reference, convert_to_reference, cp_convert,
cp_convert_and_check, ocp_convert, convert_force): Add tsubst_flags_t
parameter.
(convert_to_reference, ocp_convert): Use complain & tf_error instead
of flags & LOOKUP_COMPLAIN.
(convert_force): Adjust LOOKUP_COMPLAIN -> 0.
* name-lookup.c (identifier_type_value_1, lookup_qualified_name,
lookup_name_real, lookup_function_nonclass, lookup_name,
lookup_name_prefer_type): Adjust LOOKUP_COMPLAIN -> 0.
* cp-tree.h: Adjust prototypes; remove LOOKUP_COMPLAIN.
/testsuite
2012-06-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53567
* g++.dg/cpp0x/alias-decl-19.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/class.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/cvt.c
trunk/gcc/cp/decl.c
trunk/gcc/cp/except.c
trunk/gcc/cp/init.c
trunk/gcc/cp/method.c
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/optimize.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/rtti.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/53567] "ICE: Error reporting routines re-entered" on missing enum entry
2012-06-03 19:50 [Bug c++/53567] New: ICE: Error reporting routines re-entered on missing enum entry lunow at math dot hu-berlin.de
` (3 preceding siblings ...)
2012-06-06 23:02 ` paolo at gcc dot gnu.org
@ 2012-06-06 23:12 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-06-06 23:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53567
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.8.0
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-06-06 23:11:58 UTC ---
Should be fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-06-06 23:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-03 19:50 [Bug c++/53567] New: ICE: Error reporting routines re-entered on missing enum entry lunow at math dot hu-berlin.de
2012-06-03 19:53 ` [Bug c++/53567] " lunow at math dot hu-berlin.de
2012-06-03 19:55 ` lunow at math dot hu-berlin.de
2012-06-03 21:09 ` [Bug c++/53567] "ICE: Error reporting routines re-entered" " paolo.carlini at oracle dot com
2012-06-06 23:02 ` paolo at gcc dot gnu.org
2012-06-06 23:12 ` paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).