[Bug c/7652] -Wswitch-break : Warn if a switch case falls through

2012-11-26 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652 Arthur O'Dwyer arthur.j.odwyer at gmail dot com changed: What|Removed |Added CC

[Bug c/7652] -Wswitch-break : Warn if a switch case falls through

2012-11-26 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652 --- Comment #16 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2012-11-26 23:02:52 UTC --- (Sorry for the spam.) The corresponding Clang enhancement is http://llvm.org/bugs/show_bug.cgi?id=14440

[Bug fortran/58975] New: Builtin function RAN() interferes with F77 program's own definition of INTEGER FUNCTION RAN()

2013-11-02 Thread arthur.j.odwyer at gmail dot com
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Related to Bug 14993. Adventure II works perfectly with the old f77 compiler, but crashes under gfortran. http

[Bug fortran/58975] Builtin function RAN() interferes with F77 program's own definition of INTEGER FUNCTION RAN()

2013-11-02 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58975 --- Comment #2 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com --- You're right, adding EXTERNAL RAN to the top of the program seems to fix it. However, for gfortran to break code that has worked since the 1980s (in a dialect with 1977

[Bug fortran/58975] Builtin function RAN() interferes with F77 program's own definition of INTEGER FUNCTION RAN()

2013-11-02 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58975 --- Comment #4 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com --- @Steve: When I say f77 in lowercase, I'm talking about the f77 executable that comes as part of the fort77 package on Ubuntu. (It works by invoking f2c followed by the C

[Bug preprocessor/61613] ,##__VA_ARGS__ fails to expand the first variadic argument if it is a macro-name

2014-08-11 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61613 --- Comment #7 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com --- @David, sadly, I'm not set up to build or test GCC patches, nor am I registered as a contributor. Anyone else want to step up? I could suggest test cases, perhaps, but I

[Bug middle-end/36043] gcc reads 8 bytes for a struct of size 6 which leads to sigsegv

2014-02-25 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36043 Arthur O'Dwyer arthur.j.odwyer at gmail dot com changed: What|Removed |Added CC

[Bug c++/61358] New: Bogus duplicate label error after label used within C++11 lambda

2014-05-29 Thread arthur.j.odwyer at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com cat test.cc EOF int main() { goto doit; []() { doit: ; }; doit: ; } EOF g++ -std=c++11 -c test.cc test.cc: In function `int main()': test.cc:2:8

[Bug preprocessor/61613] New: ,##__VA_ARGS__ fails to expand the first variadic argument if it is a macro-name

2014-06-25 Thread arthur.j.odwyer at gmail dot com
Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com The following program uses the ,##__VA_ARGS__ token-pasting extension described here: https://gcc.gnu.org/onlinedocs/cpp/Variadic

[Bug preprocessor/61613] ,##__VA_ARGS__ fails to expand the first variadic argument if it is a macro-name

2014-06-25 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61613 --- Comment #1 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com --- Already filed against Clang: http://llvm.org/bugs/show_bug.cgi?id=19141

[Bug tree-optimization/49997] New: ICE in inline_small_functions with -fnon-call-exceptions

2011-08-05 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49997 Summary: ICE in inline_small_functions with -fnon-call-exceptions Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/50039] New: Segfault in vect_operation_fits_smaller_type()

2011-08-10 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50039 Bug #: 50039 Summary: Segfault in vect_operation_fits_smaller_type() Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/50067] New: Wrong code with -fpredictive-commoning

2011-08-12 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50067 Bug #: 50067 Summary: Wrong code with -fpredictive-commoning Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority:

[Bug target/50235] New: Wrong code with volatile bitfields and -Os

2011-08-29 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50235 Bug #: 50235 Summary: Wrong code with volatile bitfields and -Os Classification: Unclassified Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/48714] New: gcc -O hangs gobbling memory, while gcc -O -fno-tree-fre finishes quickly

2011-04-21 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48714 Summary: gcc -O hangs gobbling memory, while gcc -O -fno-tree-fre finishes quickly Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/48714] gcc -O hangs gobbling memory, while gcc -O -fno-tree-fre finishes quickly

2011-04-21 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48714 Arthur O'Dwyer arthur.j.odwyer at gmail dot com changed: What|Removed |Added Known to work||4.4.5

[Bug tree-optimization/48694] [4.7 Regression] possible memory hog bug

2011-04-21 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48694 Arthur O'Dwyer arthur.j.odwyer at gmail dot com changed: What|Removed |Added CC

[Bug middle-end/48722] New: ICE in df_refs_verify() with -mno-push-args

2011-04-21 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48722 Summary: ICE in df_refs_verify() with -mno-push-args Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo:

[Bug target/48723] New: ICE in ix86_expand_prologue() with -fstack-check + function returning struct, on corei7-avx

2011-04-22 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48723 Summary: ICE in ix86_expand_prologue() with -fstack-check + function returning struct, on corei7-avx Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/48732] New: Nested loops with small iteration count gobble time in tree reassociation

2011-04-22 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48732 Summary: Nested loops with small iteration count gobble time in tree reassociation Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/48739] New: ICE in check_loop_closed_ssa_use() with -ftree-parallelize-loops=2 -fno-tree-dominator-opts

2011-04-23 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48739 Summary: ICE in check_loop_closed_ssa_use() with -ftree-parallelize-loops=2 -fno-tree-dominator-opts Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/48766] New: Infinite recursion in fold_binary_loc()

2011-04-25 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48766 Summary: Infinite recursion in fold_binary_loc() Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/48768] New: ICE in get_expr_operands()

2011-04-25 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48768 Summary: ICE in get_expr_operands() Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo:

[Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs

2011-04-26 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43341 Arthur O'Dwyer arthur.j.odwyer at gmail dot com changed: What|Removed |Added CC

[Bug gcov-profile/43341] pragma pack changes padding in struct gcov_info on 64-bit archs

2011-04-26 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43341 --- Comment #6 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-04-26 20:18:42 UTC --- (In reply to comment #5) (In reply to comment #4) gcc -fpack-struct=4 -fprofile-generate test.c -fpack-struct changes the ABI so it is not fully

[Bug tree-optimization/48784] New: #pragma pack(1) + -fstrict-volatile-bitfields = bad codegen

2011-04-26 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48784 Summary: #pragma pack(1) + -fstrict-volatile-bitfields = bad codegen Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/48813] Segfault with backward branch inside dead loop body

2011-04-28 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48813 --- Comment #1 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-04-29 00:57:50 UTC --- Created attachment 24136 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24136 Output of ajo-gcc -Os -funroll-loops -c test227972954.c -v with gcc

[Bug tree-optimization/48813] New: Segfault with backward branch inside dead loop body

2011-04-28 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48813 Summary: Segfault with backward branch inside dead loop body Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/48921] Value numbering takes infinite time on nested infinite loop

2011-05-06 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48921 Arthur O'Dwyer arthur.j.odwyer at gmail dot com changed: What|Removed |Added Known to work||4.4.5

[Bug tree-optimization/48921] New: Value numbering takes infinite time on nested infinite loop

2011-05-06 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48921 Summary: Value numbering takes infinite time on nested infinite loop Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/48921] Value numbering takes infinite time on nested infinite loop

2011-05-09 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48921 --- Comment #3 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-05-10 00:02:51 UTC --- (In reply to comment #2) You're right. It no longer reproduces in revision 173589 (2011-05-09).

[Bug tree-optimization/48973] New: Inliner bug with one-bit (1-bit) bitfield

2011-05-11 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48973 Summary: Inliner bug with one-bit (1-bit) bitfield Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/48975] New: ICE in execute_cse_reciprocals() with -fno-tree-slp-vectorize

2011-05-12 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48975 Summary: ICE in execute_cse_reciprocals() with -fno-tree-slp-vectorize Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/49000] New: ICE: verify_ssa failed with -O2 -g

2011-05-14 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49000 Summary: ICE: verify_ssa failed with -O2 -g Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo:

[Bug debug/49032] New: -gstabs generates reference to deleted static variable

2011-05-17 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49032 Summary: -gstabs generates reference to deleted static variable Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug

[Bug tree-optimization/49033] New: ICE in compute_affine_dependence (tree-data-ref.c:4090) with -O3 -fcheck-data-deps

2011-05-17 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49033 Summary: ICE in compute_affine_dependence (tree-data-ref.c:4090) with -O3 -fcheck-data-deps Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/49000] [4.6/4.7 Regression] ICE: verify_ssa failed with -O2 -g

2011-05-17 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49000 --- Comment #9 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-05-18 00:48:32 UTC --- Please also check any proposed fix against this second failure, which looks to me as if it's caused by the same thing. I've renamed homologous

[Bug tree-optimization/49033] ICE in compute_affine_dependence (tree-data-ref.c:4090) with -O3 -fcheck-data-deps

2011-05-17 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49033 --- Comment #2 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-05-18 01:19:22 UTC --- (In reply to comment #1) -march=native is useless. Please show outputs from # gcc -w -std=c99 -O3 -march=native -fcheck-data-deps test891883150.c

[Bug target/49071] New: Wrong code with -fschedule-insns (x86-64)

2011-05-19 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49071 Summary: Wrong code with -fschedule-insns (x86-64) Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo:

[Bug tree-optimization/49093] New: ICE in vect_enhance_data_refs_alignment() with volatile inside peeled loop

2011-05-20 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49093 Summary: ICE in vect_enhance_data_refs_alignment() with volatile inside peeled loop Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/49206] New: RA failure in spill_failure, at reload1.c:2113

2011-05-27 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49206 Summary: RA failure in spill_failure, at reload1.c:2113 Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo:

[Bug middle-end/49308] [4.7 Regression] segfault in rest_of_handle_ud_dce () at gcc/gcc/dce.c:518

2011-06-08 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49308 Arthur O'Dwyer arthur.j.odwyer at gmail dot com changed: What|Removed |Added CC

[Bug tree-optimization/49602] New: verify_ssa failed (definition does not dominate use) with -O2 -g

2011-06-30 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49602 Summary: verify_ssa failed (definition does not dominate use) with -O2 -g Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/49610] New: Segfault with -ftree-vectorize (or -O3)

2011-07-01 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49610 Summary: Segfault with -ftree-vectorize (or -O3) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/49227] [4.7 Regression] ice in inline_small_functions

2011-07-02 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49227 --- Comment #2 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-07-02 08:04:20 UTC --- Created attachment 24657 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24657 Another testcase, fairly reduced I just ran into the same ICE via

[Bug tree-optimization/49227] [4.7 Regression] ice in inline_small_functions

2011-07-02 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49227 Arthur O'Dwyer arthur.j.odwyer at gmail dot com changed: What|Removed |Added CC

[Bug rtl-optimization/49619] New: ICE in simplify_subreg, at simplify-rtx.c:5362

2011-07-03 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49619 Summary: ICE in simplify_subreg, at simplify-rtx.c:5362 Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization

[Bug tree-optimization/49632] New: ICE in compute_affine_dependence (tree-data-ref.c:4038) with -O3

2011-07-04 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49632 Summary: ICE in compute_affine_dependence (tree-data-ref.c:4038) with -O3 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/49033] [4.6/4.7 Regression] ICE in compute_affine_dependence (tree-data-ref.c:4090) with -O3 -fcheck-data-deps -march=amdfam10

2011-07-07 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49033 --- Comment #7 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-07-08 05:37:51 UTC --- (In reply to comment #6) I cannot reproduce this with trunk rev. 176000 I agree; I've updated to r175904, and it's not there either.

[Bug target/49758] New: -O2 incorrectly swaps overlapping memory accesses

2011-07-16 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49758 Summary: -O2 incorrectly swaps overlapping memory accesses Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/49758] -O2 incorrectly swaps overlapping memory accesses

2011-07-16 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49758 --- Comment #1 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-07-16 06:46:24 UTC --- Created attachment 24777 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24777 Output of ajo-gcc -w -O2 test.c -v

[Bug rtl-optimization/49948] New: ICE with -ftree-parallelize-loops: address taken, but ADDRESSABLE bit not set

2011-08-02 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49948 Summary: ICE with -ftree-parallelize-loops: address taken, but ADDRESSABLE bit not set Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority:

[Bug rtl-optimization/49948] ICE with -ftree-parallelize-loops: address taken, but ADDRESSABLE bit not set

2011-08-02 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49948 --- Comment #1 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-08-02 17:43:00 UTC --- Created attachment 24895 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24895 Output of gcc-4.5 -O3 -ftree-parallelize-loops=2 -std=c99 -c test.c

[Bug tree-optimization/49227] [4.7 Regression] ice in inline_small_functions

2011-08-02 Thread arthur.j.odwyer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49227 --- Comment #5 from Arthur O'Dwyer arthur.j.odwyer at gmail dot com 2011-08-02 17:47:20 UTC --- Confirmed that my testcase no longer reproduces, as of svn revision 177081 or earlier.

[Bug c++/51494] Legal program rejection - capturing "this" when using static method inside lambda

2015-11-23 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51494 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/71075] New: Broken diagnostic: 'integer_cst' not supported by 'dump_decl'

2016-05-11 Thread arthur.j.odwyer at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- I'm not sure how this isn't a duplicate of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51229 , but that bug has been marked RESOLVED

[Bug c++/65396] Function template default template arguments not merged

2016-08-14 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65396 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/80144] New: Concept introduced with "template" is not diagnosed

2017-03-21 Thread arthur.j.odwyer at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- Compile this code with GCC trunk and -fconcepts: template concept bool Never = requires(T t) { { t != 42 }; }; templa

[Bug c++/81078] New: dynamic_cast to virtual base produces the wrong answer

2017-06-12 Thread arthur.j.odwyer at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- (This was found by the same fuzzer as https://bugs.llvm.org/show_bug.cgi?id=33425 --- except in this case Clang gets the right answer and GCC gets it wrong

[Bug libstdc++/81078] dynamic_cast to virtual base produces the wrong answer

2017-06-13 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81078 --- Comment #1 from Arthur O'Dwyer --- I've found that the misbehavior actually depends on the *ordering* of bases in the class graph, not just the shape of the graph. // https://wandbox.org/permlink/DaKQxTc5Ldqj9FlY #include struct

[Bug c++/86398] New: is_trivially_constructible always returns true even when is_constructible returns false

2018-07-03 Thread arthur.j.odwyer at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- This actually looks like a duplicate of PR80682, but that one was closed as "fixed" a while back, a

[Bug libstdc++/61458] std::aligned_storage is bigger than expected

2018-01-19 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61458 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/84411] New: Missed optimization: static guard variable generated for empty virtual destructor

2018-02-15 Thread arthur.j.odwyer at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- Consider the following program: struct Base { constexpr Base() = default; virtual int foo

[Bug c++/87051] New: is_trivially_move_constructible wrongly gives `false` for class with user-provided non-const copy constructor

2018-08-21 Thread arthur.j.odwyer at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- cat > test.cc <https://godbolt.org/z/mbeKD5 Verifi

[Bug c++/59704] Wrong overload chosen, compiler errornously thinks non-constant zero expression is implicitly castable to null pointer

2018-03-07 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59704 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/65923] False positive for warning about literal operator suffix and using

2018-03-31 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65923 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/84435] -Wliteral-suffix warns on a using-directive

2018-03-31 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84435 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2018-10-25 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2018-10-26 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 --- Comment #10 from Arthur O'Dwyer --- > Still better than duplicating the whole class IMO. The `optional` example in P1144R0 Appendix B looks scarier than I should have. For one thing, I omitted all the boring user-facing API of `optional`

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2018-10-25 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 --- Comment #7 from Arthur O'Dwyer --- > std::string is not trivially relocatable in libstdc++ This is surprising news to me! Just goes to show that we would benefit from an accurate detection mechanism and type trait. :) > so I won't waste

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2019-01-18 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 --- Comment #17 from Arthur O'Dwyer --- (In reply to Marc Glisse from comment #16) > (In reply to Arthur O'Dwyer from comment #15) > > @Marc, it only now occurs to me that if libstdc++ uses > > `__is_trivially_relocatable` as its userspace

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2019-01-18 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 --- Comment #15 from Arthur O'Dwyer --- @Marc, it only now occurs to me that if libstdc++ uses `__is_trivially_relocatable` as its userspace type-trait name, then GCC won't be able to use `__is_trivially_relocatable(T)` as the name of its

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2018-11-23 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 --- Comment #13 from Arthur O'Dwyer --- Re https://gcc.gnu.org/viewcvs?rev=266386=gcc=rev — awesome, but I'm curious: Why `deque` before `vector`? I mean are you planning eventually to add the specializations of `__is_trivially_relocatable` for

[Bug c++/88554] New: Segfault ICE when falling off the end of a reference-returning friend operator

2018-12-19 Thread arthur.j.odwyer at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- struct X { friend X& operator+=(X&, int) { } }; https://godbolt.org/z/17PLVW : In function 'X&a

[Bug libstdc++/89477] New: Incorrect CTAD deduction guides for set and multiset

2019-02-23 Thread arthur.j.odwyer at gmail dot com
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- I just implemented set/multiset deduction guides for libc++ because they were missing entirely. My regression test fails on libstdc++ trunk. The full test

[Bug c++/78511] ICE on using concept name as a "requires" parameter

2019-03-06 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78511 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/82768] ICE in synthesize_implicit_template_parm, at cp/parser.c:39338

2019-03-06 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82768 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug libstdc++/89610] New: Move-assigning a pmr container sometimes copies the elements instead of moving them

2019-03-06 Thread arthur.j.odwyer at gmail dot com
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- When we move-assign an allocator-aware container, and the allocator does POCMA, and the allocators

[Bug libstdc++/89477] Incorrect CTAD deduction guides for set and multiset

2019-02-24 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89477 --- Comment #1 from Arthur O'Dwyer --- Similar cases for `unordered_{multi,}set` as well. // https://godbolt.org/z/onYid6 #include int main() { const int arr[] = { 1, 2, 3 }; std::unordered_set s(arr, arr+3, 42, std::hash(),

[Bug libstdc++/89477] Incorrect CTAD deduction guides for set and multiset

2019-02-27 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89477 --- Comment #4 from Arthur O'Dwyer --- libstdc++ passes all my test cases now except this one: ``` // https://godbolt.org/z/kvh9Ih #include std::set s; std::set t(s, std::allocator()); ``` The issue is that we humans can logically deduce t's

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2019-02-05 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 --- Comment #19 from Arthur O'Dwyer --- Awesome! Thank you! :)

[Bug libstdc++/89128] New: Missing CTAD deduction guides for std::stack and std::queue

2019-01-30 Thread arthur.j.odwyer at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- https://godbolt.org/z/IdXUBQ std::deque dq; auto st = std::stack{dq}; This should be deduced as equivalent

[Bug c++/70637] Ambiguity error invoking a constructor with double brace initialization

2019-02-05 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70637 --- Comment #2 from Arthur O'Dwyer --- I should add, this is a bug in trunk, I don't know why the "Version" is set to GCC 5.2. :)

[Bug c++/70637] Ambiguity error invoking a constructor with double brace initialization

2019-02-05 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70637 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/91278] New: Array arithmetic yields "is not a constant expression" error

2019-07-27 Thread arthur.j.odwyer at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- Bug 77911 might be related, I'm not sure. // https://godbolt.org/z/UUb7kW constexpr bool test() { int i[2] {};

[Bug c++/85137] [concepts] ICE with undeclared concept

2019-07-26 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85137 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/92495] spaceship operator requires public member

2019-12-16 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92495 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/92965] New: "note: 'x' is not public" emitted even when no error is emitted

2019-12-16 Thread arthur.j.odwyer at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- cat >test.cc < class TS { int x; public: constexpr TS(int) {} }; TS(int) -> TS<1>; template void

[Bug c++/92966] New: Segfault on defaulted operator== with wrong return type

2019-12-16 Thread arthur.j.odwyer at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- cat >test.cc <https://gcc.gnu.org/bugs/> for instructions.

[Bug c++/92837] New: ICE on syntax error in requires clause, in cp_parser_constraint_primary_expression

2019-12-05 Thread arthur.j.odwyer at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- Bug 92439 may be related. cat >test.cc < concept A = true; template requires (A int EOF g++ -std=c++2a t

[Bug c++/93503] New: Duplicated warning on pure virtual implicit template in C++2a

2020-01-29 Thread arthur.j.odwyer at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- // https://godbolt.org/z/FCqkWh template concept A = true; struct S { virtual int foo(A auto) = 0; }; g++ test.cc -std=c++2a

[Bug libstdc++/87106] Group move and destruction of the source, where possible, for speed

2020-01-15 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 --- Comment #23 from Arthur O'Dwyer --- @Dan Stahlke: I believe https://stackoverflow.com/questions/47464819/uninitialized-copy-memcpy-memmove-optimization answers your question. Or, if it doesn't, then Marc or someone should consider posting an

[Bug libstdc++/68350] std::uninitialized_copy overly restrictive for trivially_copyable types

2019-12-29 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68350 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/93085] New: ICE in get_class_binding_direct and alias_ctad_tweaks, with C++20 NTTP + CTAD + alias template

2019-12-27 Thread arthur.j.odwyer at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- // https://godbolt.org/z/KhiNKJ template class A> struct G { template using B = A; templ

[Bug c++/94376] New: When nested inside a lambda body, [=] captures by const value instead of by value

2020-03-27 Thread arthur.j.odwyer at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- David Blaikie, Richard Smith, and I discovered this GCC bug while tracking down a separate bug in llvm

[Bug c++/93295] ICE in alias_ctad_tweaks

2020-05-20 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93295 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/95407] [DR 1873] G++ allows access to base class members from a friend of a derived class

2020-08-14 Thread arthur.j.odwyer at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95407 Arthur O'Dwyer changed: What|Removed |Added CC||arthur.j.odwyer at gmail dot com

[Bug c++/97096] New: ICE on invalid: in register_constexpr_fundef, on out-of-line-defaulted operator== or operator<=>

2020-09-17 Thread arthur.j.odwyer at gmail dot com
FIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- // https://godbolt.org/z/neqx1q cat >test.cpp <https://gcc.gnu.org/bugs/> f

[Bug c++/96515] New: [concepts] Segfault on ill-formed pack expansions in requires-expression

2020-08-06 Thread arthur.j.odwyer at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- // https://godbolt.org/z/rafY6G template concept PackHasAdd = (requires(Args... args) { (args+1

[Bug c++/96555] New: "template argument involves template parameter(s)" with dot or arrow operator in partial specialization

2020-08-10 Thread arthur.j.odwyer at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arthur.j.odwyer at gmail dot com Target Milestone: --- // https://godbolt.org/z/Kc98ea struct A { int x; }; extern A a; templat

  1   2   >