[Bug c++/98859] pedantic error on use of __VA_OPT__ before C++20 is unnecessary and counterproductive

2022-11-19 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98859 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #3 from

[Bug c++/107662] New: [10 concepts] ICE using concept with dependent template parameter to define variable

2022-11-12 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107662 Bug ID: 107662 Summary: [10 concepts] ICE using concept with dependent template parameter to define variable Product: gcc Version: 10.0 Status: UNCONFIRMED Sev

[Bug c++/105061] [9/10 Regression] [c++2a+] anonymous bitfield templated offset rejected

2022-03-26 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105061 --- Comment #1 from Will Wray --- Hmm, the accepted simplified version ^^^ with typename parameter removed is then rejected if 'unsigned' is replaced with 'uint32_t' from #include template struct uint_offset_bitfield { uint32_t :

[Bug c++/105061] New: [9/10 Regression] [c++2a+] anonymous bitfield templated offset rejected

2022-03-26 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105061 Bug ID: 105061 Summary: [9/10 Regression] [c++2a+] anonymous bitfield templated offset rejected Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: reject

[Bug c++/103238] c++ Feature: array-copy experimental extensions implementing P1997

2021-11-22 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103238 --- Comment #4 from Will Wray --- First cut implementation in two patches, submitted for review: https://gcc.gnu.org/pipermail/gcc-patches/2021-November/585105.html

[Bug c++/55227] designated initializer for char array by string constant

2021-11-17 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Will Wray changed: What|Removed |Added Attachment #51828|0 |1 is obsolete|

[Bug c++/55227] designated initializer for char array by string constant

2021-11-17 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Will Wray changed: What|Removed |Added Attachment #51737|0 |1 is obsolete|

[Bug c++/103238] c++ Feature: array-copy experimental extensions implementing P1997

2021-11-15 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103238 --- Comment #2 from Will Wray --- (It was my own 'interesting suggestion' to myself; going stir crazy coding!) (Apologies if I stirred anything other than thought.) Thank you for emphasising the important point on DRs. It's true that some C++ D

[Bug c++/103238] New: c++ Feature: array-copy experimental extensions implementing P1997

2021-11-14 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103238 Bug ID: 103238 Summary: c++ Feature: array-copy experimental extensions implementing P1997 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: patch

[Bug c++/84930] Brace-closed initialization of cstring (i.e."abcdefghi") to coresponding aggregate types fails in certain situation

2021-11-12 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84930 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #8 from

[Bug c++/103140] __builtin_bit_cast To C array target type

2021-11-08 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103140 --- Comment #1 from Will Wray --- Created attachment 51750 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51750&action=edit c++: __builtin_bit_cast To C array target type Proposed patch, submitted here: https://gcc.gnu.org/pipermail/gcc-p

[Bug c++/103140] New: __builtin_bit_cast To C array target type

2021-11-08 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103140 Bug ID: 103140 Summary: __builtin_bit_cast To C array target type Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: patch Severity: normal Priority: P3

[Bug c++/55227] designated initializer for char array by string constant

2021-11-04 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #11 from Will Wray --- Created attachment 51737 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51737&action=edit Proposed patch Nov 4 Sent to gcc-patches for review https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583379

[Bug c++/55227] designated initializer for char array by string constant

2021-10-25 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #10 from Will Wray --- Note that the initialization of 'c0' takes a different codepath: struct C {char a[2];}; C c0{.a="a"}; // [dcl.init.aggr] C c1{.a=""}; C c2{.a={"a"}}; C c3{.a={""}}; c1, c2 and c3

[Bug c++/55227] designated initializer for char array by string constant

2021-10-25 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #9 from Will Wray --- Adding a reshape_iter, and checking has_designator_problem, for a brace-enclosed string-literal fixes this secondary issue + reshape_iter e {CONSTRUCTOR_ELT (stripped_a_init, 0), e.cur + 1}; + if

[Bug c++/55227] designated initializer for char array by string constant

2021-10-24 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #8 from Will Wray --- The patch above doesn't address the secondary issue, of ignored and unchecked nested designators: C b {{.bogus="b"}}; Perhaps reshape_init should be recursed into once more?

[Bug c++/55227] designated initializer for char array by string constant

2021-10-24 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 --- Comment #7 from Will Wray --- The patch below fixes the main issue (I think, checking) by adding first_initializer_p to the error condition it errors only where designators are not allowed. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 8

[Bug c++/55227] designated initializer for char array by string constant

2021-10-24 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #6 from

[Bug c++/95806] Result of call with reference argument to newed object is cached during constant evaluation

2021-08-28 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95806 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #1 from

[Bug libstdc++/101960] New: std::tuple with an array element is rejected as a named return type

2021-08-18 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101960 Bug ID: 101960 Summary: std::tuple with an array element is rejected as a named return type Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/90031] Bogus parse error trying to explicitly specialize a template variable inside class scope

2021-05-30 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90031 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #1 from

[Bug c++/100231] [C++17] Variable template specialization inside a class gives compilation error

2021-05-30 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100231 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #1 from

[Bug c++/100459] New: [10/11 regression] constexpr decltype(auto) variable declaration bogus cv qual error

2021-05-06 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100459 Bug ID: 100459 Summary: [10/11 regression] constexpr decltype(auto) variable declaration bogus cv qual error Product: gcc Version: 11.0 Status: UNCONFIRMED Key

[Bug c++/96268] class-type NTTP CTAD for string-literal aggregate fails on aggregate initialization

2021-03-08 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96268 --- Comment #4 from Will Wray --- This now appears fixed on 11 trunk

[Bug c++/99472] New: [modules] std=c++2b flag appears incompatible with C++20 module code

2021-03-08 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99472 Bug ID: 99472 Summary: [modules] std=c++2b flag appears incompatible with C++20 module code Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/99471] New: Allow conversion from array of unknown bound to actual known bound

2021-03-08 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99471 Bug ID: 99471 Summary: Allow conversion from array of unknown bound to actual known bound Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug c++/93480] Defaulted <=> doesn't expand array elements

2020-12-21 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93480 --- Comment #4 from Will Wray --- Thanks Jakub; I applied your patch to trunk and ran more test cases for nested arrays (including zero-size in various positions), union element type, base classes - all passed as expected. I tried to grok the pa

[Bug c++/93480] Defaulted <=> doesn't expand array elements

2020-12-19 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93480 --- Comment #2 from Will Wray --- For reference, here's a macro-free workaround to provide portable operator<=> for templated classes with array members, defaulting where possible (current Clang and MSVC) otherwise dispatching to a user-defined i

[Bug c++/93480] Defaulted <=> doesn't expand array elements

2020-12-18 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93480 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #1 from

[Bug c++/97246] New: [10.1 regression] mismatched argument pack lengths

2020-09-29 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97246 Bug ID: 97246 Summary: [10.1 regression] mismatched argument pack lengths Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen