https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65573

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #2 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Confirmed.

#0  internal_error (
    gmsgid=gmsgid@entry=0x1763f5e <lang_independent_params+3774> "in %s, at
%s:%
d") at ../../gcc/gcc/diagnostic.c:1217
#1  0x0125459f in fancy_abort (
    file=file@entry=0x141add5 <gt_ggc_r_gt_cp_rtti_h+437>
"../../gcc/gcc/cp/type
ck.c", line=line@entry=5531,
    function=function@entry=0x141da23 <cp_build_addr_expr_1(tree_node*, bool,
in
t)::__FUNCTION__> "cp_build_addr_expr_1") at ../../gcc/gcc/diagnostic.c:1291
#2  0x0057ef13 in cp_build_addr_expr_1 (arg=<optimized out>,
    strict_lvalue=<optimized out>, complain=3)
    at ../../gcc/gcc/cp/typeck.c:5531
#3  0x0057f34c in cp_build_addr_expr_strict (complain=3, arg=0xffc90eb8)
    at ../../gcc/gcc/cp/typeck.c:5628
#4  build_x_unary_op (loc=loc@entry=2582, code=code@entry=ADDR_EXPR,
    xarg=0xffc90eb8, complain=complain@entry=3)
    at ../../gcc/gcc/cp/typeck.c:5265
#5  0x005418b2 in cp_parser_unary_expression (parser=parser@entry=0xffeb04b0,
    pidk=<optimized out>, address_p=address_p@entry=22, cast_p=true,
    decltype_p=false) at ../../gcc/gcc/cp/parser.c:7418
#6  0x005420e4 in cp_parser_cast_expression (parser=parser@entry=0xffeb04b0,
    address_p=address_p@entry=false, cast_p=cast_p@entry=true,
    decltype_p=true, decltype_p@entry=false, pidk=pidk@entry=0x0)
    at ../../gcc/gcc/cp/parser.c:8083
#7  0x00542193 in cp_parser_cast_expression (parser=parser@entry=0xffeb04b0,
    address_p=address_p@entry=false, cast_p=cast_p@entry=false,
    decltype_p=decltype_p@entry=false, pidk=pidk@entry=0x0)
    at ../../gcc/gcc/cp/parser.c:8051
#8  0x00542459 in cp_parser_binary_expression (
    parser=parser@entry=0xffeb04b0, cast_p=<optimized out>,
    no_toplevel_fold_p=no_toplevel_fold_p@entry=false,
    decltype_p=decltype_p@entry=false, prec=prec@entry=PREC_NOT_OPERATOR,
    pidk=pidk@entry=0x0) at ../../gcc/gcc/cp/parser.c:8185
#9  0x00542d60 in cp_parser_assignment_expression (
    parser=parser@entry=0xffeb04b0, pidk=pidk@entry=0x0,
    cast_p=cast_p@entry=false, decltype_p=decltype_p@entry=false)
    at ../../gcc/gcc/cp/parser.c:8442
#10 0x005431e6 in cp_parser_constant_expression (parser=0xffeb04b0,
    allow_non_constant_p=<optimized out>, non_constant_p=0xd60a63f)
    at ../../gcc/gcc/cp/parser.c:8688
#11 0x00542ef0 in cp_parser_assignment_expression (
    parser=parser@entry=0xffeb04b0, pidk=pidk@entry=0x0,
    cast_p=cast_p@entry=false, decltype_p=decltype_p@entry=false)
    at ../../gcc/gcc/cp/parser.c:8461
#12 0x00545a56 in cp_parser_expression (parser=parser@entry=0xffeb04b0,
    pidk=pidk@entry=0x0, cast_p=cast_p@entry=false,
    decltype_p=decltype_p@entry=false) at ../../gcc/gcc/cp/parser.c:8596
#13 0x00546267 in cp_parser_expression_statement (
    in_statement_expr=in_statement_expr@entry=0x0)
    at ../../gcc/gcc/cp/parser.c:10005
#14 0x0055e123 in cp_parser_statement (parser=parser@entry=0xffeb04b0,
    in_statement_expr=in_statement_expr@entry=0x0,
    in_compound=in_compound@entry=true, if_p=if_p@entry=0x0)
    at ../../gcc/gcc/cp/parser.c:9854
#15 0x0055f0c1 in cp_parser_statement_seq_opt (
    parser=parser@entry=0xffeb04b0,
    in_statement_expr=in_statement_expr@entry=0x0)
    at ../../gcc/gcc/cp/parser.c:10128
#16 0x0055f1ff in cp_parser_compound_statement (
    parser=parser@entry=0xffeb04b0,
    in_statement_expr=in_statement_expr@entry=0x0, in_try=in_try@entry=false,
    function_body=function_body@entry=true) at ../../gcc/gcc/cp/parser.c:10082
#17 0x0055f45c in cp_parser_function_body (in_function_try_block=false,
    parser=0xffeb04b0) at ../../gcc/gcc/cp/parser.c:19223
#18 cp_parser_ctor_initializer_opt_and_function_body (
    parser=parser@entry=0xffeb04b0,
    in_function_try_block=in_function_try_block@entry=false)
    at ../../gcc/gcc/cp/parser.c:19259
#19 0x00560480 in cp_parser_function_definition_after_declarator (
    parser=parser@entry=0xffeb04b0, inline_p=inline_p@entry=false)
    at ../../gcc/gcc/cp/parser.c:23501
#20 0x00561224 in cp_parser_function_definition_from_specifiers_and_declarator
...

Another case related to -fms-extensions switch. Testcase assume that option is
off.  so following patch papers over this issue:

Index: 13908.C
===================================================================
--- 13908.C     (Revision 221690)
+++ 13908.C     (Arbeitskopie)
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-additional-options "-fno-ms-extensions -pedantic" { target *-*-mingw*
} }
 // 981203 bkoz
 // g++/13908

Reply via email to