[Bug c++/121016] coroutine vs statement expressions ({})

2025-07-09 Thread beewoolie at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 --- Comment #6 from Marc Singer --- (In reply to Andrew Pinski from comment #5) > (In reply to Marc Singer from comment #4) > > I found that there are cases in the same program where it does compile. > > Yes there might be some cases where stat

[Bug c++/121016] coroutine vs statement expressions ({})

2025-07-09 Thread beewoolie at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 --- Comment #4 from Marc Singer --- I found that there are cases in the same program where it does compile.

[Bug c++/121016] coroutine appears to be allergic to {()}

2025-07-09 Thread beewoolie at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121016 --- Comment #1 from Marc Singer --- Created attachment 61825 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61825&action=edit Preprocessed version of the failing source file.

[Bug c++/121016] New: coroutine appears to be allergic to {()}

2025-07-09 Thread beewoolie at proton dot me via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: beewoolie at proton dot me Target Milestone: --- Greetings, I will attach the preprocessed source to this message. I think I see what the compiler doesn't accept. /** *** FIXME: code generates a compiler error when enc

[Bug c/121013] New: Possible miscompilation triggered by __builtin_stack_address() at `-O3`.

2025-07-09 Thread moorabbit at proton dot me via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: moorabbit at proton dot me Target Milestone: --- While working on implementing __builtin_stack_address() for Clang, I noticed that GCC can produce different results for this

[Bug d/121002] New: d: -Wno-error=deprecated does not overwrite a previous -Werror

2025-07-08 Thread a.horodniceanu at proton dot me via Gcc-bugs
Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: a.horodniceanu at proton dot me Target Milestone: --- With a sample program - deprecated void foo () {} void bar () { foo; } - And invoking gdc with both -Werror and -Wno-error

[Bug target/120799] Incorrect UBSan alignment requirements for _mm_storeh_pd() and _mm_storel_pd()

2025-06-24 Thread justus2510 at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120799 --- Comment #5 from Justus --- I understand that C considers this UB, but I don't understand how this is different from, say, _mm_storel_epi64? It's also technically UB. The only difference is one takes a double * and the other takes an __m128i

[Bug sanitizer/120799] New: Incorrect UBSan alignment requirements for _mm_storeh_pd() and _mm_storel_pd()

2025-06-23 Thread justus2510 at proton dot me via Gcc-bugs
Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: justus2510 at proton dot me CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot

[Bug c++/120686] ICE on a lambda that uses parameter pack capture and parameter pack indexing in decltype return type

2025-06-17 Thread e.siga at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120686 --- Comment #1 from Egor Bychin --- FYI: clang has a similar issue https://github.com/llvm/llvm-project/issues/144540

[Bug c++/120686] New: ICE on a lambda that uses parameter pack capture and parameter pack indexing in decltype return type

2025-06-17 Thread e.siga at proton dot me via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: e.siga at proton dot me Target Milestone: --- template struct constant {}; template auto fast_tuple(Args... args) { return [...args

[Bug tree-optimization/120613] PGO build of PHP fails with SSA corruption

2025-06-10 Thread redhat.bugzilla at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120613 --- Comment #9 from P. Ruber --- Thank you very much for all the feedback! Will notify downstream.

[Bug tree-optimization/120613] PGO build of PHP fails with SSA corruption

2025-06-09 Thread redhat.bugzilla at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120613 --- Comment #5 from P. Ruber --- (In reply to Andrew Pinski from comment #3) > or might it be a dup of bug 98845 . Both were fixed in Feburary . Should these be backported to GCC 14 by upstream or Red Hat?

[Bug tree-optimization/120613] PGO build of PHP fails with SSA corruption

2025-06-09 Thread redhat.bugzilla at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120613 --- Comment #4 from P. Ruber --- Created attachment 61611 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61611&action=edit Preprocessed source Source attached.

[Bug tree-optimization/120613] PGO build of PHP fails with SSA corruption

2025-06-09 Thread redhat.bugzilla at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120613 --- Comment #1 from P. Ruber --- *** Bug 120612 has been marked as a duplicate of this bug. ***

[Bug c/120612] New: PGO build of PHP fails with SSA corruption

2025-06-09 Thread redhat.bugzilla at proton dot me via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: redhat.bugzilla at proton dot me Target Milestone: --- Resolution: DUPLICATE Status: RESOLVED gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) on Almalinux 10 Options: ./configure CFLAGS='-O2 -march=n

[Bug c/120613] New: PGO build of PHP fails with SSA corruption

2025-06-09 Thread redhat.bugzilla at proton dot me via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: redhat.bugzilla at proton dot me Target Milestone: --- gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) on Almalinux 10 Options: ./configure CFLAGS='-O2 -march=native' --prefix=/usr/local/php848 --enable-intl --w

[Bug c++/120611] New: Name of lambda member exposed

2025-06-09 Thread ethanhancock at me dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: ethanhancock at me dot com Target Milestone: --- https://godbolt.org/z/TaGbYr33r GCC accepts the following: int main() { auto l = [](){ return 42; }; return l._FUN(); } The static member _FUN is exposed and usable. This does not

[Bug c/120511] Initializer warning on universal zero initializer for array element with double member

2025-06-02 Thread chris.j.leonard at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120511 --- Comment #7 from Chris Leonard --- The function `process_init_element` in source file gcc/c/c-typeck.cc clears `constructor_zeroinit` if `!integer_zerop (value.value)`. The problem is triggered by using a floating-point type for the initial

[Bug c/120511] Initializer warning on universal zero initializer for array element with double member

2025-06-02 Thread chris.j.leonard at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120511 --- Comment #6 from Chris Leonard --- (In reply to Andrew Pinski from comment #5) > (In reply to Andrew Pinski from comment #4) > > >struct test t = {0}; > > > > Stopped warning in GCC 5. So maybe this is just on accident. > > Looks like that

[Bug c/120511] Initializer warning on universal zero initializer for array element with double member

2025-06-02 Thread chris.j.leonard at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120511 --- Comment #2 from Chris Leonard --- Note that the exact same code using an int instead of a double has no warning. So either the code using int needs a warning, or this code needs no warning. Elements in an array of structs should be initial

[Bug c/120511] Initializer warning on universal zero initializer for array element with double member

2025-06-02 Thread chris.j.leonard at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120511 --- Comment #3 from Chris Leonard --- (In reply to Chris Leonard from comment #2) > Note that the exact same code using an int instead of a double has no > warning. So either the code using int needs a warning, or this code needs > no warning.

[Bug c/120511] New: Initializer warning on universal zero initializer for array element with double member

2025-06-02 Thread chris.j.leonard at proton dot me via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: chris.j.leonard at proton dot me Target Milestone: --- The following C source causes an erroneous -Wmissing-field-initializers warning on the penultimate line

[Bug target/119590] macOS 15.4 SDK is not GCC compatible

2025-05-22 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119590 Alisdair Meredith changed: What|Removed |Added CC||alisdairm at me dot com

[Bug c++/107953] Greater-than operator misparsed inside a lambda expression used as a template argument

2025-05-18 Thread ethanhancock at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107953 Ethan Hancock changed: What|Removed |Added CC||ethanhancock at me dot com --- Comment

[Bug c++/120318] New: Module deduced return type error.

2025-05-16 Thread kongmingd234 at proton dot me via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: kongmingd234 at proton dot me Target Milestone: --- Created attachment 61452 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61452&action=edit This code does not compile. The code given in the file does not compile,

[Bug target/79748] [Enhancement] no_callee_saved_registers function attribute (on x86)

2025-05-13 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79748 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #4 from

[Bug tree-optimization/111415] [12/13/14 Regression] False positive array-bounds warning with -O3

2025-05-12 Thread stephematician.acct at proton dot me via Gcc-bugs
. ||me --- Comment #3 from stephematician --- I encountered what I believe is the same bug while compiling an R package for CRAN. I reduced the code to the following example which produces errors on 12.4, 13.1-13.3, 14.1-14.2. An array-bounds warning occurs

[Bug c++/120056] Circular constraint satisfaction error with non-trivial container iterators to callables taking std::expected parameters

2025-05-01 Thread catsith at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120056 --- Comment #1 from catsith at me dot com --- The source code comment is wrong; std::expected template arguments do matter - replacing int with void removes the issue. The use of function pointers isn't necessary to trigger this; also ha

[Bug c++/120056] New: Circular constraint satisfaction error with non-trivial container iterators to callables taking std::expected parameters

2025-05-01 Thread catsith at me dot com via Gcc-bugs
Version: 15.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: catsith at me dot com Target Milestone: --- Created attachment 61265 --> https://gcc.gnu.org/bugzi

[Bug c++/120040] New: Module ICE when constexpr function calls new on class withe empty destructor.

2025-04-30 Thread kongmingd234 at proton dot me via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kongmingd234 at proton dot me Target Milestone: --- Created attachment 61259 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61259&action=edit This program

[Bug c++/120023] New: When using c++ modules, put deduction guide in a separate module unit file, the deduction will be ignored

2025-04-30 Thread kptas at proton dot me via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: kptas at proton dot me Target Milestone: --- Compiler: latest gcc 16.0 built from git. When using c++ modules, put primary

[Bug libstdc++/119899] Custom invoke has name collision with std::invoke, without using namespace std

2025-04-23 Thread frederik.hofe at pm dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119899 --- Comment #6 from Frederik vom Hofe --- Thx, good it! Basically template libraries might want to make heavy use of function-name-brackets, e.g. (invoke), to prevent the lookup using pulled in namespaces from parameter types.

[Bug libgcc/119899] New: Custom invoke has name collision with std::invoke, without using namespace std

2025-04-22 Thread frederik.hofe at pm dot me via Gcc-bugs
: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: frederik.hofe at pm dot me Target Milestone: --- I get a name collision with std::invoke when using my custom invoke with a std::ref parameter, without pulling in the

[Bug d/119826] New: ICE: verify_type failed: type variant differs by TYPE_MAX_VALUE with -g

2025-04-15 Thread a.horodniceanu at proton dot me via Gcc-bugs
: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: a.horodniceanu at proton dot me Target Milestone: --- The following was reduced from the onedrive client application: ```object.d module object; ``` ```onedrive.d module onedrive

[Bug tree-optimization/83022] [12/13/14/15 Regression] malloc & memset -> calloc is not always an optimization

2025-04-08 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83022 --- Comment #17 from Fangrui Song --- I hope that we just remove this malloc+memset => calloc transformation. Even in the malloc-dom-memset and memset-postdom-malloc case, calloc might not be an optimization. It is not worth the extra code comple

[Bug c++/119548] New: ICE: tree check: accessed elt 2 of 'tree_vec' with 1 elts in tsubst_pack_expansion when accessing uninstantiated decltype(lambda template return) type, inside other lambda templ

2025-03-31 Thread frederik.hofe at pm dot me via Gcc-bugs
turn) type, inside other lambda template Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: frederik.hofe at

[Bug libstdc++/119081] libstdc++.modules.json generated with incorrect relative path if configured with '--prefix=/' or '--prefix=' (empty)

2025-03-11 Thread bugzilla.gcc at me dot benboeckel.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119081 Ben Boeckel changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #5 f

[Bug c++/118516] New: Misleading error message "call to non-'constexpr' function" when loop variable is not declared

2025-01-16 Thread arvo at me dot com via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: arvo at me dot com Target Milestone: --- Created attachment 60174 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60174&

[Bug c++/118277] New: avr-g++ segfaults in constexpr string calculation

2025-01-02 Thread crab.delicieux at pm dot me via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: crab.delicieux at pm dot me Target Milestone: --- Created attachment 60033 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60033&action=edit Archive containing original source code + .ii output from GCC + ful

[Bug c++/118114] New: std::call_once crashes on LoongArch when program is built with -fPIC -mtls-dialect=desc

2024-12-18 Thread uwu at icenowy dot me via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: uwu at icenowy dot me Target Milestone: --- Created attachment 59911 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59911&action=edit The sour

[Bug driver/117992] gcc -flto -fharden leads to warning

2024-12-11 Thread uwu at icenowy dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117992 --- Comment #11 from Icenowy Zheng --- Checked gcc -v, there's really enable-default-pie, and in the output of "gcc main.c -fhardened -O2 -flto -v", the COLLECT_GCC_OPTIONS lists really include "-pie". Thus the explanation by Ruoyao looks reaso

[Bug driver/117992] gcc -flto -fharden leads to warning

2024-12-11 Thread uwu at icenowy dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117992 --- Comment #7 from Icenowy Zheng --- Does -flto imply -pie ? I cannot understand the discussion here now...

[Bug c++/117986] New: templated auto parameter with lambda as default value can result in duplicate symbols

2024-12-10 Thread emilia144 at proton dot me via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: emilia144 at proton dot me Target Milestone: --- Hello, I am compiling the following code with g++ 11.4.0, -std=c++20, on WSL (Windows Subsystem for Linux) Ubuntu

[Bug c++/117913] destroying delete operator should have implicit expection speciification

2024-12-04 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117913 --- Comment #4 from Alisdair Meredith --- In this case, clang and MSVC are not even considering the destroying delete within the noexcept operator within a static_assert --- I am not sure at what point that breaks down though. The runtime tests

[Bug c++/117913] destroying delete operator should have implicit expection speciification

2024-12-04 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117913 --- Comment #3 from Alisdair Meredith --- Clang and MSVC have bigger bugs that I am filing bug reports on shortly! EDG gets this correct and passes all parts of the test, including the "expected" undefined behavior: https://godbolt.org/z/EG3EP5

[Bug c++/117913] destroying delete operator should have implicit expection speciification

2024-12-04 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117913 --- Comment #1 from Alisdair Meredith --- Sorry, I made no effort to verify how far back this bug goes, but I expect it has been an issue ever since destroying delete was first implemented.

[Bug c++/117913] New: destroying delete operator should have implicit expection speciification

2024-12-04 Thread alisdairm at me dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alisdairm at me dot com Target Milestone: --- According to [except.spec] 14.5p9, "A deallocation function (6.7.6.5.3) with no explicit noexcept-specifier has a non-thr

[Bug c++/117855] New: Internal compiler error during substitution of template with deduction guides, and causes a crash.

2024-11-29 Thread anstro.pleuton at proton dot me via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: anstro.pleuton at proton dot me Target Milestone: --- This happens when I create a custom type that inherits std::span, and add deduction guide to

[Bug tree-optimization/115016] False positive -Wfree-nonheap-object using std::vector with -O3

2024-11-15 Thread mstarovo at pm dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115016 --- Comment #2 from Mark Starovoytov --- This issue is still reproducible with 14.2 and trunk. Another godbolt example (very similar): https://godbolt.org/z/3xrMGMYx7

[Bug tree-optimization/116098] [14 Regression] _Bool value from tagged union is incorrect when built with optimization since r14-1597-g64d90d06d2db43

2024-10-30 Thread laria at laria dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116098 --- Comment #25 from Laria Chabowski --- Sorry for the late reply, I have now checked the current trunk with the program where I originally saw this bug. It's fixed now. Many thanks!

[Bug c++/61379] __attribute__((noreturn)) ignored on pure virtual member functions

2024-10-29 Thread k4lizen at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61379 --- Comment #6 from k4lizen at proton dot me --- I understand what you're saying but I'm hoping that there would be *some* solution for annotating such functions as noreturn. It's highly counterintuitive that even after marking

[Bug c++/61379] __attribute__((noreturn)) ignored on pure virtual member functions

2024-10-29 Thread k4lizen at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61379 --- Comment #4 from k4lizen at proton dot me --- re: jakub Does what you're saying also apply to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117337 ?

[Bug preprocessor/94535] __LINE__ value changed for function-like macro invocations spanning multiple lines

2024-10-29 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94535 --- Comment #15 from Alisdair Meredith --- I suggest either INVALID or WONTFIX would be appropriate, depending on whether you think the original report on a change of behavior was valid.

[Bug c++/117337] New: Wreturn-type false positive on [[noreturn]] override

2024-10-28 Thread k4lizen at proton dot me via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: k4lizen at proton dot me Target Milestone: --- Created attachment 59481 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59481&action=edit source file Versions: g++ (GCC) 14.2.1 20240910 6.11.3-artix1

[Bug libgcc/115242] libgcc unwinder does not handle vector registers, even if the target machine supports them.

2024-10-18 Thread me at purplesyringa dot moe via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 --- Comment #5 from Alisa Sireneva --- Sorry for spam, just wanted to add some more context and maybe take back some of my conclusions. This has gotten more offtopic than I expected, so please tell me if I need to file another bug. According

[Bug libgcc/115242] libgcc unwinder does not handle vector registers, even if the target machine supports them.

2024-10-17 Thread me at purplesyringa dot moe via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115242 Alisa Sireneva changed: What|Removed |Added CC||me at purplesyringa dot moe

[Bug c++/92034] extern template declarations cannot have internal linkage (unnamed namespace)

2024-10-16 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92034 --- Comment #6 from Alisdair Meredith --- Minor update: in the current standard, the paragraph number is now p12, and per my last comment, I still believe the use of "shall" makes this ill-formed, and without "no diagnostic required" wording it s

[Bug c++/71029] large fold expressions compile slowly with -Wall

2024-10-16 Thread alisdairm at me dot com via Gcc-bugs
stopped looking for which version has the fix as that would mean installing multiple compilers for me :) I believe this issue can be closed, but not sure what the right resolution category would be.

[Bug tree-optimization/117067] false warning: array subscript 'int (**)(...)[ 0]' is partly outside array bounds

2024-10-16 Thread lobel.krivic at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117067 --- Comment #5 from Lobel Krivic --- Sorry, I am not able to follow you. Could you please explain it a bit more? Is this a bug in the code or in the compiler?

[Bug d/117115] New: [14/15 regression]: ICE in expand_d_format when diagnosing an empty enum declaration

2024-10-13 Thread a.horodniceanu at proton dot me via Gcc-bugs
Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: a.horodniceanu at proton dot me Target Milestone: --- The following code causes an ICE since 964fd402c9b48eb4da91fb3e4e45d4560d6c676c: -- module object; enum Foo

[Bug d/116961] Valgrind reports uninitialized memory use in dstruct.d (dmd.dstruct._isZeroInit(dmd.expression.Expression))

2024-10-12 Thread a.horodniceanu at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116961 --- Comment #4 from Andrei Horodniceanu --- Sorry for the wait: - $ cat repro.d module object; struct Gcx { float thing = 0.0; } $ /root/build/./gcc/gdc -B/root/build/./gcc/ -B/tmp/gcc/x86_64-pc-linux-gnu/bin/ -B/tmp/gcc/x86_64-pc-linux-

[Bug c++/117067] false warning: array subscript 'int (**)(...)[ 0]' is partly outside array bounds

2024-10-10 Thread lobel.krivic at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117067 --- Comment #2 from Lobel Krivic --- Comment on attachment 59312 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59312 the preprocessed file I had to compress it since it was a bit more than 1000KB.

[Bug c++/117067] false warning: array subscript 'int (**)(...)[ 0]' is partly outside array bounds

2024-10-10 Thread lobel.krivic at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117067 --- Comment #1 from Lobel Krivic --- Created attachment 59312 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59312&action=edit the preprocessed file I had to compress it since it was a bit more than 1000KB.

[Bug c++/117067] New: false warning: array subscript 'int (**)(...)[ 0]' is partly outside array bounds

2024-10-10 Thread lobel.krivic at proton dot me via Gcc-bugs
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lobel.krivic at proton dot me Target Milestone: --- The following source code: ``` #include #include #include #include

[Bug d/117002] New: lifetime.d: In function ‘_d_newclassT’: error: size of array element is not a multiple of its alignment with -Warray-bounds and -O2

2024-10-07 Thread a.horodniceanu at proton dot me via Gcc-bugs
Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: a.horodniceanu at proton dot me Target Milestone: --- Reported first at https://bugs.gentoo.org

[Bug tree-optimization/116098] [14 Regression] _Bool value from tagged union is incorrect when built with optimization since r14-1597-g64d90d06d2db43

2024-09-06 Thread laria at laria dot me via Gcc-bugs
ilib Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240903 (experimental) (GCC) Also reproducible on godbolt.org, which apparently uses this version for trunk: g++ (Compiler-Explorer-Build-gcc-1735917cee41fe680d9dd3c0c26b45520c17413a-binutils-2.42)

[Bug c++/63287] __STDCPP_THREADS__ is not defined

2024-08-22 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63287 --- Comment #7 from Alisdair Meredith --- Late comment: according to [intro.multithread.general] it is a requirement for hosted implementations to support more than one thread of execution, but implementation defined for a free-standing implement

[Bug c++/116417] New: SFINAE on std::is_destructible cannot handle destructor of scalar type

2024-08-19 Thread amy at amyspark dot me via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: amy at amyspark dot me Target Milestone: --- Hi all, I have the following test case that compiles in Clang 20.0.0 commit 7d5281a66d5d42c65cfb9d95eaf9aa01afb089fb : ```c

[Bug d/116373] [14/15 regression] ICE in dmd.expressionsem.resolveLoc since r14-8766-gf204359931866b

2024-08-14 Thread a.horodniceanu at proton dot me via Gcc-bugs
xample code in the issue also compiles fine for me, I don't know what's with that. Anyways, the PR does fix the issue. Thank you for the quick response.

[Bug d/116373] New: [14/15 regression] ICE in dmd.expressionsem.resolveLoc since f204359931866b917856fc959c70dbf55f28c14d

2024-08-14 Thread a.horodniceanu at proton dot me via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: a.horodniceanu at proton dot me Target Milestone: --- The following code produces an ICE beginning with commit

[Bug c++/116368] placeholder type deduction bug

2024-08-14 Thread delacroix777 at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116368 --- Comment #2 from delacroix777 at proton dot me --- So you've known about the existence of this bug for 7 years now, but still no fix?

[Bug c++/116368] New: placeholder type deduction bug

2024-08-14 Thread delacroix777 at proton dot me via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: delacroix777 at proton dot me Target Milestone: --- The exact version of GCC: gcc version 14.2.0 (Rev1, Built by MSYS2 project) - the latest version package mingw-w64-ucrt-x86_64-gcc The system type: Windows 11 64-bit 23H2 The options

[Bug c++/90960] declaring a member function with a computed typedef is confused as a data member definition

2024-08-09 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90960 --- Comment #4 from Alisdair Meredith --- I now believe my original bug report is invalid, due to a rarely consulted paragraph of the standard, [temp.spec.general]p8. If a function declaration acquired its function type through a dependent type

[Bug ipa/116191] Avoid inlining in unlikely branches

2024-08-08 Thread ilija.tovilo at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116191 --- Comment #5 from ilija.tovilo --- That's true ofc, but if you look at the example: __attribute__((cold)) extern void cold_func(void); Simply removing the cold attribute will cause zend_string_release() to be inlined, so it is indeed involve

[Bug ipa/116191] Avoid inlining in unlikely branches

2024-08-02 Thread ilija.tovilo at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116191 --- Comment #3 from ilija.tovilo --- (In reply to Andi Kleen from comment #2) > I suppose it depends on the programing style if it's a good idea. Sometimes > inlining allows to constant propagate and collapse a lot of code, and you > definitely

[Bug c/116191] New: Avoid inlining in unlikely branches

2024-08-01 Thread ilija.tovilo at me dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: ilija.tovilo at me dot com Target Milestone: --- Note that I raised this issue on the mailing list first, but was asked to create a bug report instead. https://gcc.gnu.org/pipermail/gcc/2024-July/244509.html I noticed that, in our

[Bug target/93022] [ARM, AArch32, NEON] Missing 'vld1_s16_x3' intrinsic

2024-08-01 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93022 Amyspark changed: What|Removed |Added CC||amy at amyspark dot me --- Comment #1 from

[Bug c/116098] New: _Bool value from tagged union is incorrect when built with -O1

2024-07-25 Thread laria at laria dot me via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: laria at laria dot me Target Milestone: --- Created attachment 58762 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58762&action=edit preprocessed test-O1.i I have encoun

[Bug libgomp/115367] New: The implementation of OMP_DYNAMIC is not dynamic

2024-06-05 Thread mail+gcc at nh2 dot me via Gcc-bugs
: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: mail+gcc at nh2 dot me CC: jakub at gcc dot gnu.org Target Milestone: --- Please see: "Why does my OpenMP app sometimes use only 1 thread, sometimes 3, sometimes all cores?" https://stackov

[Bug lto/115359] New: ICE in warn_types_mismatch: lto1: internal compiler error: Segmentation fault

2024-06-05 Thread a.horodniceanu at proton dot me via Gcc-bugs
Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: a.horodniceanu at proton dot me Target Milestone: --- Given the two source files: a.cpp: - struct Foo { }; void bar(Foo foo); int main() { bar

[Bug c/115326] New: __builtin_sub_overflow reports incorrect overflow value

2024-06-03 Thread cody at tapscott dot me via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: cody at tapscott dot me Target Milestone: --- Created attachment 58334 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58334&action=edit reduced test case The `__builtin_sub_o

[Bug target/105576] x86: Support a machine constraint to get raw symbol name

2024-05-27 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576 --- Comment #14 from Fangrui Song --- > Is there a way to capture a method address in inline asm that works in > -fPIC mode? Specifically I want to capture the address of a static > method that's in a class that's local to a function. I'm able t

[Bug c++/115190] -fmodule-mapper does not accept CRLF files

2024-05-23 Thread bugzilla.gcc at me dot benboeckel.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115190 --- Comment #6 from Ben Boeckel --- > The line ending of last line is also required. Personally feel strange. This is explicitly handled (as a "no, not supported" case): https://github.com/gcc-mirror/gcc/blob/4efa7ec85a85c6024d0907a0e735ad5df7f

[Bug c++/115190] -fmodule-mapper does not accept CRLF files

2024-05-22 Thread bugzilla.gcc at me dot benboeckel.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115190 --- Comment #1 from Ben Boeckel --- My analysis points to the change needing to happen in 1module_resolver::read_tuple_file` in `c++tools/resolver.cc`.

[Bug c++/115050] New: Segfault when compiled with -O0

2024-05-12 Thread lobel.krivic at proton dot me via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: lobel.krivic at proton dot me Target Milestone: --- Created attachment 58183 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58183&action=edit the preprocessed file The following source code: ``` #include #include #

[Bug fortran/102241] [PDT] ICE when declaring derived type with a parameterized derived type member

2024-05-10 Thread oliverjahn at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102241 Oliver Jahn changed: What|Removed |Added CC||oliverjahn at proton dot me --- Comment

[Bug c++/114585] New: Incorrect boolean value with O2/O3 optimisation

2024-04-04 Thread fried.ink at pm dot me via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fried.ink at pm dot me Target Milestone: --- Created attachment 57875 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57875&action=edit Example code demonstrating the issue Example code attached which demon

[Bug tree-optimization/19661] unnecessary atexit calls emitted for static objects with empty destructors

2024-03-16 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19661 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #17 from

[Bug c++/114357] New: C++: Support the no_destroy attribute

2024-03-15 Thread i at maskray dot me via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: i at maskray dot me Target Milestone: --- Clang supports [[clang::no_destroy]] (alternative form: `__attribute__((no_destroy))`) to disable exit-time destructors of variables of static or thread local storage duration. * July

[Bug target/111555] [AArch64] __ARM_FEATURE_UNALIGNED should be undefined with -mstrict-align

2024-03-14 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #5 from

[Bug sanitizer/114217] -fsanitize=alignment false positive with intended unaligned struct member access

2024-03-04 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114217 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #14

[Bug d/114171] [13/14 Regression] gdc -O2 -mavx generates misaligned vmovdqa instruction

2024-03-01 Thread a.horodniceanu at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114171 --- Comment #3 from Andrei Horodniceanu --- (In reply to Hongtao Liu from comment #2) > on rtl level,we get > > (insn 7 6 8 2 (set (reg:CCZ 17 flags) > (compare:CCZ (mem:TI (plus:DI (reg/f:DI 100 [ _5 ]) > (const_int

[Bug d/114171] New: [13/14 Regression] gdc -O2 -mavx generates misaligned vmovdqa instruction

2024-02-29 Thread a.horodniceanu at proton dot me via Gcc-bugs
: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: a.horodniceanu at proton dot me Target Milestone: --- I've hit this initially in the tests of D-Scanner but I've reduced it to: --- struct Token { st

[Bug middle-end/113987] Binding a reference to an uninitialized data member should not cause -Wuninitialized

2024-02-18 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113987 --- Comment #1 from Fangrui Song --- BTW, https://github.com/llvm/llvm-project/blob/main/clang/test/SemaCXX/uninitialized.cpp has many member initializer list examples

[Bug middle-end/113987] New: Binding a reference to an uninitialized data member should not cause -Wuninitialized

2024-02-18 Thread i at maskray dot me via Gcc-bugs
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: i at maskray dot me Target Milestone: --- https://godbolt.org/z/G7ndsTv5c (from https://github.com/llvm/llvm-project/pull/81179#issuecomment-1937082113

[Bug sanitizer/102317] signed integer overflow sanitizer cannot work well with -fno-strict-overflow

2024-02-14 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102317 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #13

[Bug lto/110710] LTO linker on Windows creates an invalid Makefile

2024-02-12 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110710 Amyspark changed: What|Removed |Added CC||amy at amyspark dot me --- Comment #6 from

[Bug c/113769] GCC fails to warn of integer being used uninitialized

2024-02-05 Thread symbioticfemale at cumallover dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113769 --- Comment #1 from SymbioticFemale --- Notably, it occurs with -Wall -Wextra -O2, etc. Integer size is irrelevant. Changing the function do_nothing to 'static inline' does not make a difference. It occurs with either pthread_mutex_t or pthread

[Bug c/113769] New: GCC fails to warn of integer being used uninitialized

2024-02-05 Thread symbioticfemale at cumallover dot me via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: symbioticfemale at cumallover dot me Target Milestone: --- // The "used uninitialized" warning is not produced on both GCC and Tiny Compiler. Clang recognizes the error. (-Wall on all compilers). See lin

[Bug target/105576] x86: Support a machine constraint to get raw symbol name

2024-01-30 Thread i at maskray dot me via Gcc-bugs
|--- |FIXED --- Comment #11 from Fangrui Song --- Thanks to HJ for landing the GCC patch (milestone: 15?) for me. Note that I made a typo in the commit message. "Ws" should typically be used with the modifier 'p' ``` namespace ns { extern int var; }

  1   2   3   4   5   6   7   8   >