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

2020-10-17 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93085 --- Comment #4 from Johel Ernesto Guerrero Peña --- > GCC shouldn't even be trying to resolve `foo<42>()` until `G` has been > instantiated. That's right. I came across this bug report when reporting such an issue:

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

2020-10-17 Thread arthur.j.odwyer at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93085 --- Comment #3 from Arthur O'Dwyer --- Re comment 2: My original test code was "invalid-code", but here's one I believe to be "valid-code" in C++20. // https://godbolt.org/z/dqcWeq template class A> struct G { template using B = A;

[Bug c++/97477] New: g++ doesn't accept __restrict keyword inside array function parameter

2020-10-17 Thread dwwork at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97477 Bug ID: 97477 Summary: g++ doesn't accept __restrict keyword inside array function parameter Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug c++/97476] New: Use of NTTP placeholder checked for CTAD before instantiation

2020-10-17 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97476 Bug ID: 97476 Summary: Use of NTTP placeholder checked for CTAD before instantiation Product: gcc Version: 11.0 URL: https://godbolt.org/z/ocWhn8 Status:

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

2020-10-17 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93085 Johel Ernesto Guerrero Peña changed: What|Removed |Added CC||johelegp at gmail dot com

[Bug c++/97475] New: An unnamed class with a typedef name for linkage purposes having a method.

2020-10-17 Thread anders.granlund.0 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97475 Bug ID: 97475 Summary: An unnamed class with a typedef name for linkage purposes having a method. Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug tree-optimization/97474] [8/9/10/11 Regression] produces wrong code with references to another field

2020-10-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97474 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/97474] [8/9/10/11 Regression] produces wrong code with references to another field

2020-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97474 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2020-10-17 Ever confirmed|0

[Bug c++/97474] Regression: optimization produces wrong code

2020-10-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97474 --- Comment #1 from Andrew Pinski --- This feels like an use after something goes out of scope.

[Bug c++/97474] New: Regression: optimization produces wrong code

2020-10-17 Thread sfranzen85 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97474 Bug ID: 97474 Summary: Regression: optimization produces wrong code Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal

[Bug libstdc++/97449] [11 Regression] libstdc++ cannot be compiled with clang after 3427e31331677ca826c5588c87924214f7e5c54b

2020-10-17 Thread ville.voutilainen at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97449 Ville Voutilainen changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/97449] [11 Regression] libstdc++ cannot be compiled with clang after 3427e31331677ca826c5588c87924214f7e5c54b

2020-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97449 --- Comment #3 from CVS Commits --- The master branch has been updated by Ville Voutilainen : https://gcc.gnu.org/g:1f65bf2aa65609c0cd88af1b83191d37d6729f46 commit r11-4024-g1f65bf2aa65609c0cd88af1b83191d37d6729f46 Author: Ville Voutilainen

[Bug other/97473] New: Spilled function parameters not aligned properly on multiple non-x86 targets

2020-10-17 Thread nate at thatsmathematics dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97473 Bug ID: 97473 Summary: Spilled function parameters not aligned properly on multiple non-x86 targets Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords:

[Bug c++/94161] Implement DR 228: Use of template keyword with non-member templates

2020-10-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94161 --- Comment #1 from Marek Polacek --- This compiles since r11-86.

[Bug c/97472] New: Another EVRP problem

2020-10-17 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97472 Bug ID: 97472 Summary: Another EVRP problem Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee:

[Bug target/95294] [vax] Convert the backend to MODE_CC so it can be kept in future releases

2020-10-17 Thread macro--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95294 Maciej W. Rozycki changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED CC|

[Bug c++/97470] ICE when using aggregate initialization of a particular layout with non trivial type

2020-10-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97470 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug tree-optimization/97466] ICE in vect_get_and_check_slp_defs, at tree-vect-slp.c:538 (at -O3)

2020-10-17 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97466 David Binderman changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-17 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #8 from Christophe Leroy --- (In reply to Jakub Jelinek from comment #1) > See https://gcc.gnu.org/bugs.html, you haven't provided either preprocessed > source, nor gcc command line options. > inline keyword itself is not a guarantee

[Bug c/97445] Some fonctions marked static inline in Linux kernel are not inlined

2020-10-17 Thread christophe.leroy at csgroup dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445 --- Comment #7 from Christophe Leroy --- With get_order(), that's even worse: there are instances of it that are never called: c000f94c : c005a7ac : c005a9c4: 4b ff fd e9 bl c005a7ac c005ab38: 4b ff fc 75 bl

[Bug preprocessor/97471] New: ICE on using function-like macro as a non function-like macro

2020-10-17 Thread gabravier at gmail dot com via Gcc-bugs
mpiler returned: 1 GCC -v output : Using built-in specs. COLLECT_GCC=/opt/compiler-explorer/gcc-snapshot/bin/gcc Target: x86_64-linux-gnu Configured with: ../gcc-trunk-20201017/configure --prefix=/opt/compiler-explorer/gcc-build/staging --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=

[Bug go/68931] gccgo fails to build using MUSL libc

2020-10-17 Thread daniel.santos at pobox dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68931 --- Comment #5 from Daniel Santos --- Created attachment 49393 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49393=edit Patch for musl compatibility The root problem is that musl defines off64_t and loff_t as preprocessor macros. These

[Bug c++/97470] New: ICE when using aggregate initialization of a particular layout with non trivial type

2020-10-17 Thread gufideg at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97470 Bug ID: 97470 Summary: ICE when using aggregate initialization of a particular layout with non trivial type Product: gcc Version: 10.2.0 Status: UNCONFIRMED

[Bug lto/94156] Multiple definition of destructor and non-virtual thunk for classes that use multiple inheritance when building static library

2020-10-17 Thread michal314314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94156 --- Comment #3 from Michał Urbański --- I confirm that attached test files reproduce the bug for me - same error messages. Thanks Pavel, never expeced someone to manage to reproduce this problem.

[Bug fortran/97380] polymorphic array assignment for `PACK`: ICE and runtime segfaults

2020-10-17 Thread federico.perini at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97380 --- Comment #4 from federico --- I've attached another program that perhaps highlights the problem better. Even just *accessing* a polymorphic array with an array causes wrong output with gfortran 9.2.0: The attached program sends elements

[Bug fortran/97380] polymorphic array assignment for `PACK`: ICE and runtime segfaults

2020-10-17 Thread federico.perini at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97380 --- Comment #3 from federico --- Created attachment 49392 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49392=edit Other test program highlights issue in accessing polymorphic arrays with arrays

[Bug go/68931] gccgo fails to build using MUSL libc

2020-10-17 Thread daniel.santos at pobox dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68931 Daniel Santos changed: What|Removed |Added CC||daniel.santos at pobox dot com ---

[Bug driver/97469] __attribute__ ((__target__ ("..."))) resets -mcmodel= values, breaks grub compilation

2020-10-17 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97469 --- Comment #1 from Sergei Trofimovich --- Reading https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes it's not very clear if __attribute__((__target__("..."))) should throw away all existing -m*

[Bug driver/97469] New: __attribute__ ((__target__ ("..."))) resets -mcmodel= values, breaks grub compilation

2020-10-17 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97469 Bug ID: 97469 Summary: __attribute__ ((__target__ ("..."))) resets -mcmodel= values, breaks grub compilation Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug rtl-optimization/97459] __uint128_t remainder for division by 3

2020-10-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97459 --- Comment #4 from Thomas Koenig --- Here's a complete program for benchmarks on x86_64, using Jakub's functions (so they are indeed correct): #include #include #include #include #include #include unsigned r3_128u_v2 (__uint128_t n) {

[Bug lto/94156] Multiple definition of destructor and non-virtual thunk for classes that use multiple inheritance when building static library

2020-10-17 Thread pavel51tunin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94156 Павел Тюнин changed: What|Removed |Added CC||pavel51tunin at gmail dot com --- Comment

[Bug c++/97468] New: gcc crashes when using __may_alias__ attribute

2020-10-17 Thread tangyixuan at mail dot dlut.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97468 Bug ID: 97468 Summary: gcc crashes when using __may_alias__ attribute Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/97467] New: ICE in verify_range, at value-range.cc:369 (-Os and above)

2020-10-17 Thread su at cs dot ucdavis.edu via Gcc-bugs
compression algorithms: zlib gcc version 11.0.0 20201017 (experimental) [master revision 56e4eee935c:ba026021eaa:f476a9fe912132abf06c2832a1bb9abe6c1a1bb1] (GCC) [595] % [595] % gcctk -O1 small.c [596] % [596] % gcctk -Os small.c during GIMPLE pass: evrp small.c: In function ‘main’: small.c:13:1: internal

[Bug c++/97452] [coroutines] incorrect sequencing of await_resume() when multiple co_await expressions occur in a single statement

2020-10-17 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97452 --- Comment #3 from Iain Sandoe --- (In reply to David Ledger from comment #2) > I'm happy to use this thread for the issue, I can just repost my link to the > same issue here. > > My reporting of the issue is here, but Lewis Bakers example is