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

[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 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 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 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 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 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 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 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 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 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/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 #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/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/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 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 lto/111635] Objects built with -flto cannot be linked with Xcode

2023-09-28 Thread amy at amyspark dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111635 --- Comment #1 from Amyspark --- Created attachment 56014 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56014&action=edit Full compiler version

[Bug lto/111635] New: Objects built with -flto cannot be linked with Xcode

2023-09-28 Thread amy at amyspark dot me via Gcc-bugs
Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: amy at amyspark dot me CC: marxin at gcc dot gnu.org Target Milestone: --- Created attachment 56013 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56013&action=edit Full build failure

[Bug c++/111529] [11/12/13/14 Regression] ICE on bool conversion in an unrolled loop condition inside template lambda nested in another template scope

2023-09-21 Thread bugreport0 at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111529 --- Comment #2 from Maxim Plyushkin --- It appears that this regression happened between 8.3 and 8.4, not between 10.1 and 11.1.

[Bug c++/111529] New: ICE on bool conversion in an unrolled loop condition inside template lambda nested in another template scope

2023-09-21 Thread bugreport0 at proton dot me via Gcc-bugs
dot me Target Milestone: --- template void f() { [](auto c) { #pragma GCC unroll 9 for (int i = c; i; --i) { } }; } int main() { f<0>(); } compiles with -std=c++14 but with -std=c++17 generates : In instantiation of 'void f() [with int x = 0]': :11:7: re

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

2023-09-17 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111441 --- Comment #3 from mengli ming --- Um..regarding the warning about "stack-based buffer over-read", it's a FP.

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

2023-09-17 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111441 --- Comment #2 from mengli ming --- (In reply to Andrew Pinski from comment #1) > Created attachment 55916 [details] > testcase > > Please next time attach or place the testcase inline instead of just linking > to godbolt . Thanks for the remi

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

2023-09-17 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: --- Thanks for taking the time to look into this case. See it live: https://godbolt.org/z/Errh1v5rr. When the line

[Bug analyzer/110529] Analyzer fails to handle computed goto

2023-09-16 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110529 --- Comment #6 from mengli ming --- (In reply to David Malcolm from comment #5) > Should be fixed on trunk for gcc 14 by the above commit. Thanks a lot for your hard work!

[Bug analyzer/111213] New: -Wanalyzer-out-of-bounds false negative with `return arr[9];`

2023-08-28 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, this case (https://godbolt.org/z/98PMz1KKz) contains an out-of-bound error (stmt: `return arr[9];`). At -O0, the analyzer can

[Bug c/39589] make -Wmissing-field-initializers=2 work with "designated initializers" ?

2023-08-24 Thread mail at pfrost dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39589 Peter Frost changed: What|Removed |Added CC||mail at pfrost dot me --- Comment #14

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

2023-08-21 Thread dale.mengli.ming at proton dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110529 --- Comment #2 from mengli ming --- Um, would you be available to take a look at this case? Your insights would be greatly appreciated!

[Bug analyzer/111095] New: -Wanalyzer-out-of-bounds false negative with `return l_1322[9];`

2023-08-21 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/sKPxGrG8z), the array `l_1322` has a capacity of 7. However, in relation to the `return

  1   2   3   4   5   6   7   8   >