[Bug c/109707] New: Skip __attribute__((naked)) functions for -pg and -finstrument-functions

2023-05-02 Thread i at maskray dot me via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: i at maskray dot me Target Milestone: --- The asm in a naked function may reasonably expect the argument registers and the return address register (if present) to be live

[Bug c/109707] Skip __attribute__((naked)) functions for -pg and -finstrument-functions

2023-05-02 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109707 --- Comment #1 from Fangrui Song --- I came here from a PR for Clang: https://github.com/llvm/llvm-project/issues/62504

[Bug middle-end/109707] naked attribute should imply the no_instrument_function attribute

2023-05-02 Thread i at maskray dot me via Gcc-bugs
-project/issues/62504 makes sense to me: the only one reasonable way is probably to skip naked functions. The Linux kernel ran into this combination in 2009 and they switched to use __attribute__((naked)) and __attribute__((__no_instrument_function__)) together in https://git.kernel.o

[Bug other/109709] New: List of prerequisites should include that tar is required (not only for unpacking the source).

2023-05-03 Thread me at manueljacob dot de via Gcc-bugs
Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: me at manueljacob dot de Target Milestone: --- When tar is not installed, building GCC under Linux will fail, at least with the default configuration

[Bug bootstrap/109709] List of prerequisites should include that tar is required (not only for unpacking the source).

2023-05-03 Thread me at manueljacob dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109709 --- Comment #3 from Manuel Jacob --- (In reply to Richard Biener from comment #1) > Huh, can you post how it fails? if [ -d ../prev-gcc ]; then \ cd ../prev-gcc && \ make real-install-headers-tar DESTDIR=`pwd`/../gcc/ \ libsubdir=. ; \

[Bug bootstrap/109709] List of prerequisites should include that tar is required (not only for unpacking the source).

2023-05-04 Thread me at manueljacob dot de via Gcc-bugs
seem reasonable to me.

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

2023-05-04 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576 --- Comment #6 from Fangrui Song --- (In reply to Hongtao.liu from comment #4) > constraint "i" + "%p0"? > > asm (".pushsection .xxx,\"aw\"; .dc.a %p0; .popsection" :: "i"(addr)); // > supported on aarch64 and riscv > asm (".pushsection .xx

[Bug c++/109806] New: 13.1.0 cc1plus stack smashing crash with C array of complex structs

2023-05-10 Thread amy at amyspark dot me via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: amy at amyspark dot me Target Milestone: --- Hi, Coming from https://github.com/msys2/MINGW-packages/pull/16968#issuecomment-1541465457. I've found a crash in cc1plus 13.1.0

[Bug tree-optimization/109806] 13.1.0 cc1plus stack smashing crash with C array of complex structs

2023-05-11 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109806 --- Comment #3 from Amyspark --- Created attachment 55046 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55046&action=edit ZIP copy of the Github gist

[Bug tree-optimization/109806] 13.1.0 cc1plus stack smashing crash with C array of complex structs

2023-05-11 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109806 --- Comment #4 from Amyspark --- (In reply to Richard Biener from comment #2) > Likely a duplicate of a bug where ranger runs out of stack on windows > targets. I think you mean bug 109695? If so, it affects GCC 13 as well.

[Bug tree-optimization/109806] [13/14 Regression] 13.1.0 cc1plus stack smashing crash with C array of complex structs

2023-05-11 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109806 --- Comment #9 from Amyspark --- (In reply to Andrew Pinski from comment #7) > Simple testcase: > ``` > struct basic_string { > ~basic_string() { } > }; > const basic_string data[] = { {} }; > ``` > > This fails with `ulimit -s 1024` which is

[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 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++/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 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++/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 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/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 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++/105467] Dependency file produced by C++ modules causes Ninja errors

2023-10-17 Thread bugzilla.gcc at me dot benboeckel.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105467 Ben Boeckel changed: What|Removed |Added CC||bugzilla.gcc at me dot benboeckel

[Bug analyzer/111213] -Wanalyzer-out-of-bounds false negative with `return arr[9];` at -O1 and above

2023-10-25 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111213 --- Comment #3 from mengli ming --- (In reply to David Malcolm from comment #1) > (In reply to mengli ming from comment #0) > > Thanks for filing this bug. > > > Hi, this case (https://godbolt.org/z/98PMz1KKz) contains an out-of-bound > > erro

[Bug analyzer/110520] -Wanalyzer-null-dereference false nagetive with `*ptr = 10086`

2023-10-25 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110520 --- Comment #2 from mengli ming --- (In reply to David Malcolm from comment #1) > Thanks for filing this bug. > > With trunk (for gcc 14) I correctly get a NPD warning (true positive): > https://godbolt.org/z/a5h38cz7d > > With gcc 13.2, I d

[Bug analyzer/111095] -Wanalyzer-out-of-bounds false negative with `return l_1322[9];` at -O1 and above

2023-10-25 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111095 --- Comment #3 from mengli ming --- (In reply to David Malcolm from comment #1) > Thanks for filing this bug. > > This looks similar to bug 111213. > > Adding -fdump-ipa-analyzer=stderr shows that at -O1 and above, the entire > body of the fun

[Bug analyzer/111441] internal compiler error: in fold_binary_loc, at fold-const.cc:11580

2023-10-25 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111441 --- Comment #4 from mengli ming --- Hi, I've checked recently and the crash still persists, even with the -O0 optimization level.

[Bug analyzer/111095] -Wanalyzer-out-of-bounds false negative with `return l_1322[9];` at -O1 and above

2023-10-25 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111095 --- Comment #4 from mengli ming --- (In reply to David Malcolm from comment #1) > Thanks for filing this bug. > > This looks similar to bug 111213. > > Adding -fdump-ipa-analyzer=stderr shows that at -O1 and above, the entire > body of the fun

[Bug analyzer/111095] -Wanalyzer-out-of-bounds false negative with `return l_1322[9];` at -O1 and above

2023-10-25 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111095 --- Comment #5 from mengli ming --- Created attachment 56202 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56202&action=edit Under the `-O0` optimization level, irrelevant code affects whether the analyzer will report an out-of-bound warn

[Bug target/111635] Objects built with -flto cannot be linked with Xcode

2023-10-30 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 --- Comment #6 from Amyspark --- I need to recover my GCC installation post Homebrew forcing an OS upgrade to Monterey. Still, I think this needs to be tested against the x64 target -- I've seen some issues only happening when targeting it.

[Bug target/111635] Objects built with -flto cannot be linked with Xcode

2023-10-30 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 --- Comment #7 from Amyspark --- I can confirm this is no longer reproducible with macOS Monterey 12.7, Xcode 14.2, and the following linker version: @(#)PROGRAM:ld PROJECT:ld64-820.1 BUILD 20:07:01 Nov 7 2022 configured to support archs: arm

[Bug c++/110016] New: [12/13/14] Possible miscodegen when inlining std::condition_variable::wait predicate causes deadlock

2023-05-28 Thread amy at amyspark dot me via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: amy at amyspark dot me Target Milestone: --- Created attachment 55181 --> https://gcc.gnu.org/bugzilla/attachment.cgi

[Bug libstdc++/110016] Possible miscodegen when inlining std::condition_variable::wait predicate causes deadlock

2023-05-28 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110016 --- Comment #2 from Amyspark --- We've seen failures both in Windows (all ABI flavors) and macOS only when compiled with GCC -- AppleClang, Clang, and MSVC (in its three flavors) all work without issue. So I'm doubtful it's a logical issue, espe

[Bug c/110094] New: Support __builtin_mem*_inline

2023-06-02 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 introduced `__builtin_memcpy_inline` (https://reviews.llvm.org/D73543) in 2020 and `__builtin_memset_inline` (https://reviews.llvm.org/D126903) in 2022. The two builtin functions expand

[Bug target/109456] `-ffixed` is ignored for `a` registers on RISC-V.

2023-06-09 Thread gccriscvuser at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109456 --- Comment #8 from gccriscvuser at proton dot me --- Thoughts?

[Bug target/109456] `-ffixed-reg` cannot prevent using `reg` for ABI-mandated roles (argument register etc) and the behavior should be documented more clearly

2023-06-23 Thread gccriscvuser at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109456 --- Comment #12 from gccriscvuser at proton dot me --- Updating the documentation is good, but there should also be an error diagnostic, right?

[Bug tree-optimization/110472] New: 60% slowdown with fwrapv when using openmp

2023-06-28 Thread ryanpholt at me dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ryanpholt at me dot com Target Milestone: --- Created attachment 55423 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55423&action=edit Reproduction file Compiling the attached example with

[Bug middle-end/110472] 60% slowdown with fwrapv when using openmp

2023-06-29 Thread ryanpholt at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110472 --- Comment #2 from Ryan Holt --- (In reply to Andrew Pinski from comment #1) > I think it is just wrong iv-opt choices. > > Works just fine on aarch64-linux-gnu too: > ubuntu@ubuntu:~/src/upstream-gcc-aarch64\# ~/upstream-gcc/bin/gcc t4.c -O2

[Bug analyzer/110520] New: -Wanalyzer-null-dereference false nagetive with `*ptr = 10086`

2023-07-02 Thread dale.mengli.ming at proton dot me via Gcc-bugs
Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dale.mengli.ming at proton dot me Target Milestone: --- Hi,in this case (https://godbolt.org/z/4Md3o94Gx), the `ptr` is a null pointer, but the analyzer doesn't report an NPD wi

[Bug analyzer/110521] New: -Wanalyzer-null-dereference false nagetive with `*p = i`

2023-07-02 Thread dale.mengli.ming at proton dot me via Gcc-bugs
Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dale.mengli.ming at proton dot me Target Milestone: --- Hi, in this case (https://godbolt.org/z/azzTd94hz), the `p` is a null poinetr, but the analyzer doesn't report an NPD with it.

[Bug analyzer/110529] New: -Wanalyzer-null-dereference false nagetive with `*arr[0] = 10086`

2023-07-03 Thread dale.mengli.ming at proton dot me via Gcc-bugs
Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dale.mengli.ming at proton dot me Target Milestone: --- Hi, ```c void foo(int pc) { int *arr[2] = {&&x, &&y}; int var = 0; goto *arr[pc]; x: ar

[Bug analyzer/110529] -Wanalyzer-null-dereference false nagetive with `*arr[0] = 10086`

2023-07-03 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110529 --- Comment #1 from mengli ming --- It's a little odd that there is no output (https://godbolt.org/z/GhshzvaTq) for `_analyzer_eval(1)` in line 9 and line 13.

[Bug middle-end/110711] New: possible missed optimization for std::max with -march=znver2

2023-07-18 Thread mrks2023 at proton dot me via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mrks2023 at proton dot me Target Milestone: --- I think I found a missed optimization involving std::max() for -march=znver2 (sorry if it was already reported, but I didn't

[Bug middle-end/110729] New: -fpatchable-function-entries: __patchable_function_entries has wrong sh_link

2023-07-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: --- Noticed by Ziwei Mao. % cat a.c void f() {} void g() {} void h() {} % gcc -ffunction-sections -fpatchable-function-entry

[Bug c++/105467] Dependency file produced by C++ modules causes Ninja errors

2023-12-30 Thread bugzilla.gcc at me dot benboeckel.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105467 --- Comment #8 from Ben Boeckel --- > Some people even claim that properly supporting Make to build C++ modules is > not possible if you want to make it actually production quality and reliable. It is possible, but, AFAIK, requires at least on

[Bug c++/105467] Dependency file produced by C++ modules causes Ninja errors

2023-12-30 Thread bugzilla.gcc at me dot benboeckel.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105467 --- Comment #9 from Ben Boeckel --- > unless autoconf/automake started relying on the non-GNU `fdep` [1] project. Gah, editing gone awry. This was about Fortran module support in autoconf/autotools, not C++ module support (they have similar bui

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

2024-01-10 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576 --- Comment #8 from Fangrui Song --- I've encountered another use case related to metadata sections (establish an artificial reference for linker garbage collection purposes) namespace ns { extern int var; } // defined in another translation u

[Bug tree-optimization/109806] [13/14 Regression] 13.1.0 cc1plus stack smashing crash with C array of complex structs

2024-01-12 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109806 --- Comment #19 from Amyspark --- Working on it. Is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110315 the patch you referred to earlier, Richard?

[Bug tree-optimization/109806] [13/14 Regression] 13.1.0 cc1plus stack smashing crash with C array of complex structs

2024-01-12 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109806 Amyspark changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug target/104816] -fcf-protection=branch should generate endbr instead of notrack jumps

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

[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; }

[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 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/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 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 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 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 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 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 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++/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 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] 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++/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 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 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 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 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++/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 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++/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] 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 #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 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 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 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++/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 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 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 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 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 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 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 c/99517] New: __builtin_convertvector with casts

2021-03-10 Thread me+gcc.gnu at lelf dot lu via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: me+gcc.gnu at lelf dot lu Target Milestone: --- #include typedef int8_t GV __attribute__((vector_size(32),aligned(1))); typedef int32_t IV __attribute__((vector_size(16),aligned(1))); typedef int64_t JV __attribute__((vector_size(32

[Bug c/98194] New: [9/10/11 Regression]internal compiler error: output_operand: invalid use of register 'frame'

2020-12-08 Thread anbu1024.me at gmail dot com via Gcc-bugs
NCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat test.c void sub_0 ( void ) { register int var_0 asm ( "19" ) ;

[Bug c/98195] New: [11 Regression] internal compiler error: Segmentation fault

2020-12-08 Thread anbu1024.me at gmail dot com via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat test.c static _Atomic long double x ; void foo ( void ) { int a , b , c ; x += foo ( x , a , b , c

[Bug c/98197] New: [11 Regresson] internal compiler error: Floating point exception

2020-12-08 Thread anbu1024.me at gmail dot com via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat test.c struct struct_0 { char field_0 ; } ; struct struct_0 { struct struct_0 field_1 ; } x[1]; int foo

[Bug c/98198] New: [11 Regression] internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in decl_or_type_attrs

2020-12-08 Thread anbu1024.me at gmail dot com via Gcc-bugs
Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat test-6951.c static inline void sub_1

[Bug c/101171] New: [12 Regression] ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in c_expr_sizeof_expr, at c/c-typeck.c:3006

2021-06-22 Thread anbu1024.me at gmail dot com via Gcc-bugs
Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat 34.c extern void foo(void); int x

[Bug c/101172] New: [12 regression] ICE Segmentation fault

2021-06-22 Thread anbu1024.me at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat 36.c union U { int a[3]; struct { int a : 3; struct this_struct var; } b; }; const union U hello = {.a = {1, 2, 3}}; void foo() { int x = hello.b.a

[Bug c/101171] [12 Regression] ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in c_expr_sizeof_expr, at c/c-typeck.c:3006

2021-06-23 Thread anbu1024.me at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101171 --- Comment #3 from John X --- (In reply to Richard Biener from comment #1) > Is your GCC 11 compiler checking-enabled? I doubt it is a regression. gcc 11 build command: ``` configure --prefix=install_path --enable-languages=c --disable-multil

[Bug c/101196] New: [12 Regression] ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p

2021-06-24 Thread anbu1024.me at gmail dot com via Gcc-bugs
Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat 37.c extern int var[16]; void foo(int [x]); void bar

[Bug c++/109095] New: ICE when specializing a template with an auto nontype template template parameter

2023-03-10 Thread n.morales.0 at proton dot me via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: n.morales.0 at proton dot me Target Milestone: --- This ICE is present in gcc 12.1/2 and in trunk: template< typename T > struct bar {}; template< int X

[Bug c++/107732] New: ICE in lower_bound, at value-range.h:350

2022-11-17 Thread gcc-bugzilla at al42and dot me via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugzilla at al42and dot me Target Milestone: --- Created attachment 53916 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53916&action=edit Preprocessed source (-freport-bug) The following code (reduced

[Bug c++/107732] ICE in lower_bound, at value-range.h:350

2022-11-17 Thread gcc-bugzilla at al42and dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107732 --- Comment #2 from Andrey Alekseenko --- @Aldy Hernandez, thank you. Can confirm that your patch fully resolves the issue for me.

[Bug c++/108195] New: Incorrect implicit conversion when assigning initializer_list to std::vector

2022-12-21 Thread gcc-bugzilla at al42and dot me via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugzilla at al42and dot me Target Milestone: --- The following code compiles fine with Clang 15 and GCC 12 and outputs "3" when run. With GCC 13, it produces

[Bug c++/105749] New: Bogus maybe-unitialized when using std::optional, regex and sstream

2022-05-27 Thread hi+gccbugs at yamlcoder dot me via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hi+gccbugs at yamlcoder dot me Target Milestone: --- Created attachment 53044 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53044&action=edit t.ii reproducer Co

[Bug c++/106350] New: O3 memcpy warning when prepending a length-1 string literal to a constant std::string

2022-07-18 Thread me+gccbugzilla at s5 dot pm via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: me+gccbugzilla at s5 dot pm Target Milestone: --- Created attachment 53318 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53318&action=edit Log prod

<    2   3   4   5   6   7   8   >