[Bug c++/51724] New: no matching function for call; confused by earlier errors, bailing out

2012-01-01 Thread vegard.nossum at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51724 Bug #: 51724 Summary: no matching function for call; confused by earlier errors, bailing out Classification: Unclassified Product: gcc Version: 4.6.2 Status:

[Bug c++/52109] New: Apparently endless recursive instantiation

2012-02-03 Thread vegard.nossum at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52109 Bug #: 52109 Summary: Apparently endless recursive instantiation Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal

[Bug c++/67582] New: typeof(*p) * fails when p is void *

2015-09-15 Thread vegard.nossum at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- $ gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 $ cat voidptr void foo(void *p) { typeof(*p) *x; } I'd expect this to work as if 'x' was declared 'void *x' (which

[Bug c++/67582] typeof(*p) * fails when p is void *

2015-09-15 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67582 --- Comment #3 from Vegard Nossum --- (In reply to Jonathan Wakely from comment #1) > You can't dereference a void*, so why do you expect to be able to get the > type of an invalid expression? I was under the impression that the expression was

[Bug c++/67582] typeof(*p) * fails when p is void *

2015-09-15 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67582 --- Comment #5 from Vegard Nossum --- (In reply to Jonathan Wakely from comment #4) > But *p is not a valid expression, so you might as well ask for > typeof(this is nonsense and not valid C++). > > You also can't ask for sizeof(*p) for a void

[Bug c++/71756] New: internal compiler error: in ~saved_token_sentinel, at cp/parser.c:1228

2016-07-04 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Using this: struct t { template t(F &) { } }; void foo() { (t([const ]() { i

[Bug c++/84576] New: g++: internal compiler error: Segmentation fault (program cc1plus)

2018-02-26 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- The following is obviously not a valid C++ program but crashes the compiler: a(){[](class{ Output: :1:3: error: ISO C++ forbids

[Bug inline-asm/84742] New: internal compiler error: in process_alt_operands, at lra-constraints.c:2112

2018-03-06 Thread vegard.nossum at gmail dot com
: ice-on-invalid-code Severity: normal Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Created attachment 43580 --> https://gcc.gnu.org/bugzilla/attachment.

[Bug c++/84745] New: internal compiler error: Segmentation fault (main_block_label())

2018-03-06 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: void a() { alignof(({ b: 0; })); goto b; } Output: $ xgcc -x c

[Bug inline-asm/84742] internal compiler error: in process_alt_operands, at lra-constraints.c:2112

2018-03-08 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84742 --- Comment #4 from Vegard Nossum --- So I think the problem is that this loop in lra_set_insn_recog_data() counts the number of commas and uses that as the number of alternatives: 1018 for (p = constraints[0]; *p; p++) 1019

[Bug inline-asm/84742] internal compiler error: in process_alt_operands, at lra-constraints.c:2112

2018-03-08 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84742 --- Comment #2 from Vegard Nossum --- Created attachment 43598 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43598=edit ASAN output I compiled gcc itself using -fstack-protector-all -fsanitize=address and it occasionally gives me the

[Bug inline-asm/84742] internal compiler error: in process_alt_operands, at lra-constraints.c:2112

2018-03-08 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84742 --- Comment #3 from Vegard Nossum --- gcc/recog.c:2395 is: 2390 case '0': case '1': case '2': case '3': case '4': 2391 case '5': case '6': case '7': case '8': case '9': 2392 { 2393 char *end; 2394 op_alt[i].matches = strtoul (p, ,

[Bug c++/84598] New: internal compiler error: Segmentation fault (cp_default_conversion())

2018-02-27 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input (I know... don't ask): template __attribute__ a([] { class c, __attribute__(vector_size(operator+( d; Output

[Bug c++/84596] New: internal compiler error: unexpected expression '(bool)c' of kind implicit_conv_expr (cxx_eval_constant_expression)

2018-02-27 Thread vegard.nossum at gmail dot com
: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: template void b(int c) { static_assert(c

[Bug c++/39751] ICE in cp_lexer_new_from_tokens, at cp/parser.c:342

2018-02-27 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39751 Vegard Nossum changed: What|Removed |Added CC||vegard.nossum at gmail dot com

[Bug c++/84602] New: internal compiler error: in search_anon_aggr, at cp/name-lookup.c:1218

2018-02-27 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: struct { struct { class a; }; : a } x; Output: $ xgcc -x c++ -std=c++14 -O3 -c - 2>&1 :4:8: internal c

[Bug c++/84632] internal compiler error: tree check: expected record_type or union_type or qual_union_type, have array_type in reduced_constant_expression_p, at cp/constexpr.c:1778

2018-03-01 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84632 --- Comment #2 from Vegard Nossum --- (In reply to Marek Polacek from comment #1) > Can't reproduce this one with r258080. I just recompiled r258097 and I still get it: $ xgcc -x c++ -S - [...] :3:9: internal compiler error: tree check:

[Bug c++/84630] New: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in tsubst_lambda_expr, at cp/pt.c:17141

2018-02-28 Thread vegard.nossum at gmail dot com
Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- I was quite sure I had submitted this one

[Bug c++/84642] New: internal compiler error: Segmentation fault (tree_check()/synthesize_implicit_template_parm())

2018-03-01 Thread vegard.nossum at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: a(int(const &&__attribute__((b(auto;) Output: :1:36: internal compil

[Bug c++/84636] New: internal compiler error: Segmentation fault (identifier_p()/grokdeclarator())

2018-02-28 Thread vegard.nossum at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: typedef void a(); struct { a: 1; }; Output: $ xgcc -x c++ -S - :3:6: internal compiler error: Segmentation

[Bug c++/84638] New: internal compiler error: verify_gimple failed (error: invalid rhs for gimple memory store)

2018-03-01 Thread vegard.nossum at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: a(volatile int b) { } Output: $ xgcc -x c++ -S -fpermissive -fsanitize=address - :1:17: warning

[Bug c++/84644] New: internal compiler error: in warn_misplaced_attr_for_class_type, at cp/decl.c:4718

2018-03-01 Thread vegard.nossum at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: template struct b { decltype(a) __attribute__((break)); }; Output: $ xgcc -x c++ -S - :3:35

[Bug c++/84633] internal compiler error: in lvalue_kind, at cp/tree.c:206

2018-03-01 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84633 --- Comment #2 from Vegard Nossum --- (In reply to Marek Polacek from comment #1) > (In reply to Vegard Nossum from comment #0) > > 7.3.0 seems fine. > > I think you're testing with a compiler built with --enable-checking=release > so it

[Bug c++/84632] New: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have array_type in reduced_constant_expression_p, at cp/constexpr.c:1778

2018-02-28 Thread vegard.nossum at gmail dot com
, at cp/constexpr.c:1778 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone

[Bug c++/84633] New: internal compiler error: in lvalue_kind, at cp/tree.c:206

2018-02-28 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: a (void[sizeof(0 = auto)]); Output: $ xgcc -x c++ -S -fpermissive - :1:20: error: expected primary-expression before 'auto' :1:19

[Bug c++/84647] New: internal compiler error: Segmentation fault (standard_conversion())

2018-03-01 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: void (*a)(auto b = c()); Output: xgcc -x c++ -S -fpermissive - :1:20: warning: there are no arguments to 'c' that depend

[Bug c++/84651] New: internal compiler error: in pop_local_binding, at cp/name-lookup.c:2054

2018-03-01 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: void a() { struct { int b struct b } x; } Output: $ xgcc -x c++ -S - : In function 'void a()': :3:9: error

[Bug c++/84730] New: internal compiler error: Segmentation fault (build_class_member_access_expr)

2018-03-06 Thread vegard.nossum at gmail dot com
: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct { int

[Bug inline-asm/71572] ICE with VLA and "+g" inline-asm in force_constant_size, at gimplify.c:671

2018-03-06 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71572 Vegard Nossum changed: What|Removed |Added CC||vegard.nossum at gmail dot com

[Bug c++/84733] New: internal compiler error: Segmentation fault (check_local_shadow())

2018-03-06 Thread vegard.nossum at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct c { ~c(); } b; void f

[Bug c++/84938] New: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 (gen_reg_rtx()/maybe_legitimize_operand())

2018-03-18 Thread vegard.nossum at gmail dot com
Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target

[Bug tree-optimization/71485] g++ ICE on x86_64-linux-gnu in “gimplify_expr”

2018-03-18 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71485 Vegard Nossum changed: What|Removed |Added CC||vegard.nossum at gmail dot com

[Bug c++/84939] New: internal compiler error: in gimplify_expr, at gimplify.c:12382

2018-03-18 Thread vegard.nossum at gmail dot com
-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct a { void b() { struct c

[Bug c++/84940] New: internal compiler error: in build_value_init_noctor, at cp/init.c:465

2018-03-18 Thread vegard.nossum at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int b; void c() { struct

[Bug c++/84941] New: internal compiler error: in reg_overlap_mentioned_p, at rtlanal.c:1870 (reg_overlap_mentioned_p()/match_asm_constraints_1())

2018-03-18 Thread vegard.nossum at gmail dot com
Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp

[Bug c++/84942] New: internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011

2018-03-18 Thread vegard.nossum at gmail dot com
Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: a(__attribute__((b

[Bug c++/84943] New: internal compiler error: in build_call_a, at cp/call.c:374

2018-03-18 Thread vegard.nossum at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: void a() { a[0]() } Output: $ cc1plus

[Bug c++/84691] New: internal compiler error: in poplevel_class, at cp/name-lookup.c:4430

2018-03-03 Thread vegard.nossum at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: template struct a { unsigned b

[Bug c++/81575] [7/8 Regression] ICE on C++ code: in cp_build_addr_expr_1, at cp/typeck.c:5793

2018-03-03 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81575 Vegard Nossum changed: What|Removed |Added CC||vegard.nossum at gmail dot com

[Bug c++/84694] New: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'identifier_node' in do_friend, at cp/friend.c:498

2018-03-03 Thread vegard.nossum at gmail dot com
Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com

[Bug c++/84596] [8 Regression] internal compiler error: unexpected expression '(bool)c' of kind implicit_conv_expr (cxx_eval_constant_expression)

2018-03-03 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84596 --- Comment #6 from Vegard Nossum --- I see a similar ICE on r258221 using this test case: template struct a { constexpr int b() { int c; static_assert(c %= 1); } }; Output: $ xgcc -x c++ -S - : In member function 'constexpr int

[Bug c++/84707] New: internal compiler error: Segmentation fault (tree_check()/duplicate_decls())

2018-03-05 Thread vegard.nossum at gmail dot com
: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input (this one is positively

[Bug c++/84704] New: internal compiler error: gimplification failed

2018-03-04 Thread vegard.nossum at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int a[]{0}; void b() { a[({0;})] %= 0; } Output: $ xgcc -x c++ -S -g -O3 - : In function 'void b

[Bug c++/84702] New: internal compiler error: in tsubst_copy, at cp/pt.c:15082

2018-03-04 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: void a(); namespace { void a(); } template void

[Bug c++/84703] New: internal compiler error: in cxx_eval_bare_aggregate, at cp/constexpr.c:2810

2018-03-04 Thread vegard.nossum at gmail dot com
: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: template void

[Bug c++/84705] New: internal compiler error: in add_stmt, at cp/semantics.c:390

2018-03-05 Thread vegard.nossum at gmail dot com
-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int a[]{a}; template struct b

[Bug c++/84704] internal compiler error: gimplification failed

2018-03-04 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84704 --- Comment #1 from Vegard Nossum --- I should add that both -g and (one of) -Os/-O1/-O2/-O3 seems necessary for the ICE to trigger. Also, it seems that 7.3.0 works by emitting this for -O1: b(): mov eax, DWORD PTR a[rip] mov ecx, 0 cdq

[Bug c++/84708] New: internal compiler error: in lambda_expr_this_capture, at cp/lambda.c:772

2018-03-05 Thread vegard.nossum at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int y; void a() { struct { int b = ([] { decltype(b) x

[Bug c++/84651] internal compiler error: in pop_local_binding, at cp/name-lookup.c:2054

2018-03-05 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84651 --- Comment #2 from Vegard Nossum --- Related test case/crash: void a() { struct { void b(float) struct b = 0; void b(); } x; } int b; Gives: xgcc -x c++ -S - : In function 'void a()': :3:17: error: expected ';' at end of member

[Bug c++/84720] New: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'error_mark' in decl_anon_ns_mem_p, at cp/tree.c:3472

2018-03-05 Thread vegard.nossum at gmail dot com
Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com

[Bug c++/84724] New: internal compiler error: in single_succ_edge, at basic-block.h:339

2018-03-05 Thread vegard.nossum at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int __builtin_trap(); int

[Bug c++/84714] New: internal compiler error: in create_tmp_var, at gimple-expr.c:476

2018-03-05 Thread vegard.nossum at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: void a(struct b ) { asm ("&q

[Bug c++/84655] New: internal compiler error: unexpected expression 'a' of kind template_parm_index

2018-03-01 Thread vegard.nossum at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input (you gotta love this one!): template struct b { int & int d[] = [] { auto f(a); }; } const __attribu

[Bug inline-asm/84677] New: internal compiler error: in extract_constrain_insn, at recog.c:2205

2018-03-02 Thread vegard.nossum at gmail dot com
Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: void a() { double b; asm ("" : "+pz, y" (b)); } Output: $ xgcc -x c++ -S - : In funct

[Bug inline-asm/84679] New: internal compiler error: in lra_eliminate_reg_if_possible, at lra-eliminations.c:1382

2018-03-02 Thread vegard.nossum at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: void f() { int b; asm("" : "=mp" (b)); (void) }

[Bug c++/84676] New: internal compiler error: Segmentation fault (build_new_op_1)

2018-03-02 Thread vegard.nossum at gmail dot com
-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int a; void b(__attribute__((c([](int

[Bug inline-asm/84680] New: internal compiler error: Max. number of generated reload insns per insn is achieved (90)

2018-03-02 Thread vegard.nossum at gmail dot com
Severity: normal Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: void a() { double b; asm volatile("" : "=vp" (b) : "0"

[Bug inline-asm/84682] New: internal compiler error: Segmentation fault (process_address_1)

2018-03-02 Thread vegard.nossum at gmail dot com
Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: void b(char a) { asm("" : : "pIr" (a)); } Output: $ xgcc -x c++ -S -Wall - dur

[Bug inline-asm/84683] New: internal compiler error: in move_for_stack_reg, at reg-stack.c:1173

2018-03-02 Thread vegard.nossum at gmail dot com
Priority: P3 Component: inline-asm Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: void a(float b, double c) { for (int e = 0; e < 2; e++) { asm volatile ("" : "+f" (

[Bug rtl-optimization/84682] internal compiler error: Segmentation fault (process_address_1)

2018-03-02 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84682 --- Comment #2 from Vegard Nossum --- I'm also seeing a different crash with this (using -O3): int a; void b() { float c; for (int d; d;) ; a = c; asm("" : : "pIr"(c)); } Output: $ xgcc -x c++ -S -Wall -fpermissive -O3 - : In

[Bug c++/84588] New: internal compiler error: Segmentation fault (contains_struct_check())

2018-02-27 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- This program: struct a { void b() {} void c(auto = [] { if (a a(int auto){}) ; }) {} }; Invoked with: xgcc -x

[Bug c++/84590] New: -fsanitize=undefined internal compiler error: tree check: expected constructor, have target_expr in split_nonconstant_init_1, at cp/typeck2.c:629

2018-02-27 Thread vegard.nossum at gmail dot com
Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: void a() { struct

[Bug c++/84585] New: internal compiler error: in get_local_decls, at cp/name-lookup.c:3654

2018-02-27 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- This (invalid) program: template b() {[](auto = template <;{a c(auto When compiled with: xgcc -x c++ -std=c++14 -O3

[Bug c++/84576] [6/7/8 Regression] g++: internal compiler error: Segmentation fault (program cc1plus)

2018-02-27 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84576 --- Comment #4 from Vegard Nossum --- (In reply to Jakub Jelinek from comment #3) > BTW, when using creduce, if the original is valid or has just one error or > something similar, please try to write the script such that it will not > confirm a

[Bug c++/84593] New: internal compiler error: Segmentation fault (non_type_check())

2018-02-27 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: struct a { int x; int c = 0; int } c = {}; Output: $ xgcc -x c++ -std=c++14 -O3 -c - :5:8: error: member 'a::b

[Bug c++/84606] New: internal compiler error: Segmentation fault (enclosing_instantiation_of())

2018-02-27 Thread vegard.nossum at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: template struct s { struct { void __attribute__((common([] { struct d }))) g(); } f; }; s a {}; Output

[Bug c++/84608] New: Hang in cxx_eval_constant_expression() with -fsanitize=undefined

2018-02-27 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Created attachment 43525 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43525=edit GDB stack trace Input: void f(v

[Bug c++/84609] New: internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c:28960

2018-02-28 Thread vegard.nossum at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: struct s { int a __attribute__((aligned([](char *) {}))); }; Output: $ xgcc -x c++ -std=c++14 -O3 -Wall

[Bug c++/84576] [6/7/8 Regression] g++: internal compiler error: Segmentation fault (program cc1plus)

2018-02-28 Thread vegard.nossum at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84576 --- Comment #5 from Vegard Nossum --- I have another testcase which crashes in a similar way, but I'm not sure if it's the same underlying bug or not: void a() { enum * { [] (union {}) }; } The original crash was: (gdb) run Starting

[Bug c++/84610] New: internal compiler error: in synthesize_implicit_template_parm, at cp/parser.c:38843

2018-02-28 Thread vegard.nossum at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: a (int &__attribute__ ((aligned(auto x)) y)); Output: $ xgcc -x c++ -c inpu

[Bug c++/84618] New: internal compiler error: in build_capture_proxy, at cp/lambda.c:460

2018-02-28 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: template void a() { struct { void b() const; void b() { [b] } }; }; Output: $ xgcc -x c++ -S input.cc

[Bug c++/84663] New: internal compiler error: tree check: expected array_type, have error_mark in cp_complete_array_type, at cp/decl.c:8334

2018-03-02 Thread vegard.nossum at gmail dot com
Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot

[Bug c++/84664] New: internal compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2172

2018-03-02 Thread vegard.nossum at gmail dot com
: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int a() { auto = 1

[Bug c++/84661] New: internal compiler error: Segmentation fault (strip_array_types())

2018-03-02 Thread vegard.nossum at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: class { b(decltype(((a = 0

[Bug c++/84665] New: internal compiler error: in build_value_init, at cp/init.c:343

2018-03-02 Thread vegard.nossum at gmail dot com
-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct { } a[1]; template void b

[Bug c++/84662] New: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in is_bitfield_expr_with_lowered_type, at cp/typeck.c:1944

2018-03-02 Thread vegard.nossum at gmail dot com
/typeck.c:1944 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail

[Bug demangler/84668] New: c++filt: out of memory allocating 18446744071696285694 bytes after a total of 135168 bytes

2018-03-02 Thread vegard.nossum at gmail dot com
Severity: normal Priority: P3 Component: demangler Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- $ c++filt '__H5z55_H5z555' c++filt: out of memory allocating

[Bug c++/84652] New: internal compiler error: in cp_parser_template_id, at cp/parser.c:15860

2018-03-01 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: template int a(a); Output: $ xgcc -x c++ -S - :2:17: error: types may not be defined in template arguments :2:19

[Bug c++/84653] New: internal compiler error: Segmentation fault (prep_operand)

2018-03-01 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: constexpr int a(); b(int, __attribute__((c(int{} && (a == (auto) (a);); Output: xgcc -x c++ -S - :2:50: error:

[Bug c++/84611] New: internal compiler error: in operator[], at vec.h:826 (local_class_index())

2018-02-28 Thread vegard.nossum at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: template struct a { a() { struct c; try { } catch (struct c {}) { } } }; struct d { d

[Bug c++/84605] New: internal compiler error: in xref_basetypes, at cp/decl.c:13818

2018-02-27 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com Target Milestone: --- Input: struct b { x(((struct b {}))); }; Output: $ xgcc -x c++ -std=c++14 -O3 -c - :2:4: error: expected identifier before

[Bug c++/84728] New: internal compiler error: Segmentation fault (is_gimple_variable())

2018-03-05 Thread vegard.nossum at gmail dot com
-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: void a(int b) { asm(""

[Bug c++/84729] New: internal compiler error: verify_gimple failed

2018-03-05 Thread vegard.nossum at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: typedef int b[2]; void a() { new b(a); } Output: $ xgcc -x c++ -S -std