[Bug libstdc++/119714] Failure when using == operator on a class derived from std::expected

2025-04-24 Thread mail at johslarsen dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119714 Johannes Larsen changed: What|Removed |Added CC||mail at johslarsen dot net

[Bug c++/119923] New: `-pedantic-errors` should imply `-fno-ms-extensions` on MinGW

2025-04-24 Thread iamsupermouse at mail dot ru via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- GCC on Windows has a relatively little-known flag `-fno-ms-extensions`, which disables some problematic MSVC-like extensions, which

[Bug c++/113958] support visibility attribute for typeinfo symbol

2025-04-01 Thread mail at milianw dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113958 Milian Wolff changed: What|Removed |Added CC||mail at milianw dot de --- Comment #5

[Bug c++/100570] g++ does not suppress bitfield conversion warning even isystem flag is set

2025-02-21 Thread fsmoke at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100570 --- Comment #6 from fsmoke --- I just now tested my sample on gcc 13.3 it seems bug already fixed somehow >>That's not a system include directory, because you didn't use -isystem And no... it's not nesessery, because isystem works for all subd

[Bug c++/100570] g++ does not suppress bitfield conversion warning even isystem flag is set

2025-02-06 Thread fsmoke at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100570 --- Comment #3 from fsmoke --- Is any movement about this BUG?

[Bug libstdc++/118699] [MinGW] std::filesystem::copy doesn't work when the second argument is a directory and the first one is a file

2025-01-30 Thread iamsupermouse at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118699 --- Comment #2 from Egor --- It says 14.2.0. So this is fixed in trunk, I assume... COLLECT_GCC=Z:\mingw64\bin\g++.exe COLLECT_LTO_WRAPPER=Z:/home/holyblackcat/.quasi-msys2/mingw64/root/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/l

[Bug libstdc++/118699] New: [MinGW] std::filesystem::copy doesn't work when the second argument is a directory and the first one is a file

2025-01-29 Thread iamsupermouse at mail dot ru via Gcc-bugs
rsion: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- The bug only happens on MinGW. This code: #in

[Bug c/118656] New: glibc getenv returns the wrong result sometimes if the parameter contains '='

2025-01-25 Thread MikeSmith32564 at mail dot com via Gcc-bugs
NCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: MikeSmith32564 at mail dot com Target Milestone: --- #include #include int main() { setenv("STR1", "NAME=VALUE", 1); ch

[Bug c++/118235] New: generate strange code to access const, but not static array with doubles via index

2024-12-29 Thread dushistov at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dushistov at mail dot ru Target Milestone: --- Online demo available here https://godbolt.org/z/6jdKK1K7n . For code like this: ``` enum class MyEnum { A, B, C, D

[Bug libstdc++/105857] codecvt::do_length causes unexpected buffer overflow

2024-11-27 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857 --- Comment #16 from andysem at mail dot ru --- Thanks for the fix. And for the explanation. Yes, backport would be nice.

[Bug libstdc++/105857] codecvt::do_length causes unexpected buffer overflow

2024-11-19 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857 --- Comment #7 from andysem at mail dot ru --- Reproduces for me: $ g++ -g2 -O0 -o codecvt_length_bug codecvt_length_bug.cpp $ ./codecvt_length_bug *** buffer overflow detected ***: terminated Aborted (core dumped) $ g++ -v Using built-in

[Bug libstdc++/105857] codecvt::do_length causes unexpected buffer overflow

2024-11-19 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857 --- Comment #8 from andysem at mail dot ru --- I think, sanitizers won't detect it unless you build libstdc++ with them enabled. I would expect valgrind to detect it though. I think, Ubuntu builds libstdc++ with _FORTIFY_SOURCE enabled,

[Bug libstdc++/105857] codecvt::do_length causes unexpected buffer overflow

2024-11-19 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857 --- Comment #3 from andysem at mail dot ru --- I'm not sure about the meaning of the wrong-code keyword, but just to clear, I do not consider the code sample in the bug report to be wrong (i.e. incorrect usage of the standard library). If

[Bug target/116833] [12/13/14/15 Regression] Symbian: incorrect configuration for crtfastmath.o

2024-10-14 Thread fedor_qd at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116833 --- Comment #7 from Fiodar --- I tried to go deeper in these modes and wrote small app. In 'libgcc/config/arm/crtfastmath.c' that line: __asm__("vmrs %0, fpscr" : "=r" (fpscr_save)); Raise error: {standard input}: Assembler messages: {standard

[Bug target/116833] [12/13/14/15 Regression] Symbian: incorrect configuration for crtfastmath.o

2024-10-13 Thread fedor_qd at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116833 --- Comment #6 from Fiodar --- I look for floating modes in symbian SDK docs. Here link(now that site and webarchive down) - https://docs.huihoo.com/symbian/nokia-symbian3-developers-library-v0.8/GUID-D525B9A9-6B32-535B-A282-60C85A48D3FB.html

[Bug c++/117106] New: ICE when a "deducing this" function with noexcept specification is used before the class is complete

2024-10-12 Thread iamsupermouse at mail dot ru via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- The following code causes an internal compiler error in GCC 14 and trunk: https://gcc.g

Mail delivery failed: returning message to sender

2024-10-03 Thread Mail Delivery System
This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address failed: dennis.drisc...@verizon.net: SMTP error from remote server for TEXT command

[Bug target/116904] RISC-V: address calculation not hoisted from loop

2024-09-30 Thread a-horohorin at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116904 --- Comment #1 from Andrey Khorokhorin --- `-fpic` flag solves the problem, but it seems like a workaround, but not a solution

[Bug target/116904] New: RISC-V: address calculation not hoisted from loop

2024-09-30 Thread a-horohorin at mail dot ru via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: a-horohorin at mail dot ru Target Milestone: --- Hi, I have found a performance bug on RISC-V target. Example: ```c int main() { int arr[5000]; for (int i = 0; i < 5000; ++i) { arr[i]

[Bug target/116833] [12/13/14/15 Regression] Symbian: incorrect configuration for crtfastmath.o

2024-09-24 Thread fedor_qd at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116833 --- Comment #5 from Fiodar --- (In reply to Andrew Pinski from comment #1) > More likely Symbian os support should be removed as I highly doubt anyone > has tested it in the last 10 years. I build ScummVM for Symbian with selfbuilded GCC ≥ 5.4.

[Bug libgcc/116833] New: Symbian: incorrect configuration for crtfastmath.o

2024-09-24 Thread fedor_qd at mail dot ru via Gcc-bugs
Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: fedor_qd at mail dot ru Target Milestone: --- Here config from libgcc/config.host: 565 arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) 566 tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-p

[Bug c++/116789] Internal compiler error for non-type template parameter to alias template inside macro

2024-09-23 Thread aslobodkins at mail dot smu.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116789 --- Comment #10 from Slobodkins, Arkadijs --- (In reply to Andrew Pinski from comment #9) > . That's go(In reply to Andrew Pinski from comment #8) > (In reply to Andrew Pinski from comment #7) > > The important part is the type alias ali1. > >

[Bug c++/116789] Internal compiler error for non-type template parameter to alias template inside macro

2024-09-20 Thread aslobodkins at mail dot smu.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116789 --- Comment #4 from Slobodkins, Arkadijs --- Created attachment 59161 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59161&action=edit .ii file generated from -save-temps Please find .ii file attached.

[Bug c++/116789] Internal compiler error for non-type template parameter to alias template inside macro

2024-09-20 Thread aslobodkins at mail dot smu.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116789 --- Comment #2 from Slobodkins, Arkadijs --- I must correct myself that I don't see this issue on gcc14. I only observe it on gcc13.2 and I did not try gcc13.3. Please let me know if anything else is needed. 1. The output of gcc-v. It was in

[Bug c++/116789] New: Internal compiler error for non-type template parameter to alias template inside macro

2024-09-20 Thread aslobodkins at mail dot smu.edu via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: aslobodkins at mail dot smu.edu Target Milestone: --- I get the following error on all versions of gcc13 and gcc14 I have tried so far(includes gcc-14.1 and gcc

[Bug c++/116697] Bogus -Wuninitialized warning when no access to uninitialized data is done

2024-09-13 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116697 --- Comment #2 from andysem at mail dot ru --- When we say "uninitialized", we refer to a specific data access, i.e. when a certain operation uses an object whose value is unspecified as input. With some stretch, you could consider a

[Bug c++/116697] New: Bogus -Wuninitialized warning when no access to uninitialized data is done

2024-09-12 Thread andysem at mail dot ru via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andysem at mail dot ru Target Milestone: --- Consider this example: struct array { char m_buf[10]; typedef char* iterator; iterator begin() { return m_buf

[Bug c++/116492] New: inherited constructors in subclass of std::expected can not be overridden

2024-08-26 Thread mail at johslarsen dot net via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mail at johslarsen dot net Target Milestone: --- Created attachment 59007 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59007&action=edit preprocessed file F

[Bug c++/116289] [13 regression] Can't apply decltype to comparison operators created by spaceship operator for local classes

2024-08-08 Thread iamsupermouse at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116289 --- Comment #3 from Egor --- (In reply to Patrick Palka from comment #2) > r14-4140 ... doesn't seem suitable for backporting Fair enough. What's the procedure now, should I set status=resolved?

[Bug c++/116289] New: [13.3 regression] Can't apply decltype to comparison operators created by spaceship operator for local classes

2024-08-08 Thread iamsupermouse at mail dot ru via Gcc-bugs
rsion: 13.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- This bug only affects 13.3. Works fine in 13.2 and in 14.x. H

[Bug c++/116178] wish: command line -std=c++newest

2024-08-01 Thread antto at mail dot bg via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116178 --- Comment #7 from antto --- honestly, this was just a semi-serious idea, and then some people on IRC surprisingly said that they like it and encouraged me to submit it (and i was surprised, but here it is, i submitted it) a possible usecase i

[Bug c++/116178] wish: command line -std=c++newest

2024-08-01 Thread antto at mail dot bg via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116178 --- Comment #5 from antto --- well, it's surely a blury subject, maybe some logic could be made up to make it make some amount of sense - afaiu currently the latest stable is 17(?) - the year is 2024 - yet on the language side of things, c++26

[Bug c++/116178] New: wish: command line -std=c++newest

2024-08-01 Thread antto at mail dot bg via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: antto at mail dot bg Target Milestone: --- i was told that GCC uses the newest "stable" C++ language std by default when -std= hasn't been specified so there's maybe two major flavors of this wish: 1. add an op

[Bug c++/116090] New: [11 regression] Another -Wmaybe-uninitialized false positive with std::optional

2024-07-25 Thread iamsupermouse at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- I'm not sure if it's an exact duplicate, since there are many bugs about -Wmaybe-uninitialized false posit

[Bug c++/115952] g++ 14.1.0 internal compiler error for ambiguous function template overloads

2024-07-16 Thread aslobodkins at mail dot smu.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115952 --- Comment #1 from Slobodkins, Arkadijs --- Created attachment 58683 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58683&action=edit preprocessed file

[Bug c++/115952] New: g++ 14.1.0 internal compiler error for ambiguous function template overloads

2024-07-16 Thread aslobodkins at mail dot smu.edu via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: aslobodkins at mail dot smu.edu Target Milestone: --- * I am using g++ 14.1.0 on Ubunutu 22.04

Mail delivery failed: returning message to sender

2024-07-09 Thread Mail Delivery System
This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: gcc-bugs@gcc.gnu.org host gcc.gnu.org [8.43.85.97] SMTP error from remote mail

[Bug c++/115616] New: Friend-injecting a template function causes an ICE if you inject after trying to instantiate that function

2024-06-24 Thread iamsupermouse at mail dot ru via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- The following causes an internal compiler error in GCC 14 and trunk: https

[Bug tree-optimization/115582] [15 regression] wrong code when accessing members of incompatible type structure

2024-06-21 Thread tangyixuan at mail dot dlut.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115582 --- Comment #4 from tangyixuan --- Thanks for your concerns. The type of "a.x" is converted to char in "(char *)a + 1", and it may be confused in clang under -O0 vs -O{2,3}. gcc-15 outputs the "int" value, but the previous versions like gcc-5.3

[Bug tree-optimization/115582] New: [regression 15] wrong code when accessing members of incompatible type structure

2024-06-21 Thread tangyixuan at mail dot dlut.edu.cn via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tangyixuan at mail dot dlut.edu.cn Target Milestone: --- Hi, I find GCC produces wrong code under optimizations when pointers point to incompatible type

[Bug tree-optimization/115492] New: [15 Regression] wrong code at -O2/O3 when compiled with -fPIC

2024-06-14 Thread tangyixuan at mail dot dlut.edu.cn via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tangyixuan at mail dot dlut.edu.cn Target Milestone: --- Hi, I find that GCC-15 produces the possible wrong code when compiling the following code with "-O3 -fPIC"

[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 c/115320] New: wrong code with -O2/O3 when using union with different data type

2024-06-02 Thread tangyixuan at mail dot dlut.edu.cn via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tangyixuan at mail dot dlut.edu.cn Target Milestone: --- Hi, GCC outputs different results with -O1/O3 during the compilation of the following test case. Since Union allows different data

[Bug c/115088] New: Autofdo doesn't create correct cfg

2024-05-14 Thread andyzhenyu.zhao at mail dot utoronto.ca via Gcc-bugs
nt: c Assignee: unassigned at gcc dot gnu.org Reporter: andyzhenyu.zhao at mail dot utoronto.ca Target Milestone: --- Created attachment 58204 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58204&action=edit afdo cfg HI. I used the gcc 14 and autofdo-0.19. I tried to foll

[Bug rtl-optimization/115081] find thie PR will cause ICE: Modify cost calculation for dealingf with equivalaennces

2024-05-13 Thread andyzhenyu.zhao at mail dot utoronto.ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115081 --- Comment #4 from Zhenyu Zhao --- I apologize for not describing my problem clearly. I'm now trying to import these two PR in gcc in the x86 openEuler OS to test some application. But after introducing them I found out that these two pr's caus

[Bug rtl-optimization/115081] find thie PR will cause ICE: Modify cost calculation for dealingf with equivalaennces

2024-05-13 Thread andyzhenyu.zhao at mail dot utoronto.ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115081 --- Comment #2 from Zhenyu Zhao --- Created attachment 58198 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58198&action=edit Detail info about ICE Sorry for that, I reattach the image.

[Bug c/115081] New: find thie PR will cause ICE: Modify cost calculation for dealingf with equivalaennces

2024-05-13 Thread andyzhenyu.zhao at mail dot utoronto.ca via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: andyzhenyu.zhao at mail dot utoronto.ca Target Milestone: --- Here is the website for this patch: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h

[Bug tree-optimization/113896] [12 Regression] Assigning array elements in the wrong order after floating point optimization since r12-8841

2024-02-14 Thread noobie-iv at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113896 --- Comment #9 from noobie-iv at mail dot ru --- I confirm that the original bug in the scantailor-experimental project was also fixed by commit 2f16c53558d01135f0f78cf78a2f722b774684d7.

[Bug c++/113896] New: Assigning array elements in the wrong order after floating point optimization

2024-02-12 Thread noobie-iv at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: noobie-iv at mail dot ru Target Milestone: --- Created attachment 57404 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57404&action=edit Test prog

[Bug libstdc++/113099] locale without RTTI uses dynamic_cast before gcc 13.2 or has ODR violation since gcc 13.2

2023-12-26 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113099 --- Comment #13 from andysem at mail dot ru --- (In reply to Jonathan Wakely from comment #12) > (In reply to andysem from comment #11) > > > I'm not sure what you mean by "the compiler is free to generate code that >

[Bug libstdc++/113099] locale without RTTI uses dynamic_cast before gcc 13.2 or has ODR violation since gcc 13.2

2023-12-24 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113099 --- Comment #11 from andysem at mail dot ru --- > I'm not sure what you mean by "the compiler is free to generate code that > takes it into account." Takes what into account? What problem does that > freedom cause? I

[Bug libstdc++/113099] locale without RTTI uses dynamic_cast before gcc 13.2 or has ODR violation since gcc 13.2

2023-12-23 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113099 --- Comment #4 from andysem at mail dot ru --- > It's mostly OK to mix code with -frtti and -fno-rtti, but sometimes it bites > you. Note that in this case, it is the standard library that is built with -frtti and the rest of the co

[Bug libstdc++/113099] locale without RTTI uses dynamic_cast before gcc 13.2 or has ODR violation since gcc 13.2

2023-12-23 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113099 --- Comment #3 from andysem at mail dot ru --- I think, a failing dynamic_cast would not be useful as this would make std::use_facet unusable with -fno-rtti. Re. ODR violation in the latest code, while it is true that the dynamic/static_cast is

[Bug c++/113111] New: -Werror=uninitialized is not consistent for optimization level 0 or -std=before-c++20

2023-12-22 Thread MikeSmith32564 at mail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: MikeSmith32564 at mail dot com Target Milestone: --- The following snippet: #include #include struct Dummy { std::string val; }; int main

[Bug libstdc++/113099] New: locale without RTTI uses dynamic_cast before gcc 13.2 or has ODR violation since gcc 13.2

2023-12-20 Thread andysem at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: andysem at mail dot ru Target Milestone: --- Consider this test case: ``` #include class __attribute__((__visibility__("default"))) my_cod

[Bug libstdc++/112832] New: [std::format] Broken non-SFINAE-friendly `set_debug_format()` for `const char *` formatter

2023-12-03 Thread iamsupermouse at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- GCC doesn't seem to implement `{:?}` debug format for strings yet. Yet for some reason

[Bug c++/111771] Incorrect "is used uninitialized" warning, as if zero-initialization didn't propagate through user-provided default constructors

2023-10-11 Thread iamsupermouse at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111771 --- Comment #2 from Egor --- Before calling A's constructor, it will zero `x` anyway. I was also surprised when I learned this yesterday, but it's what the standard says. 1. `()` performs value-initialization on B: http://eel.is/c++draft/dcl.d

[Bug c++/111771] New: Incorrect "is used uninitialized" warning, as if zero-initialization didn't propagate through user-provided default constructors

2023-10-11 Thread iamsupermouse at mail dot ru via Gcc-bugs
Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- Here's the code. GCC with `-

[Bug libstdc++/111747] Problem with large float list initialization

2023-10-10 Thread oplata.kes1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111747 --- Comment #2 from oplata.kes1 at mail dot ru --- (In reply to Andrew Pinski from comment #1) > > 32bit floating point has the following characteristics: > Sign bit: 1 bit > Exponent width: 8 bits > Significand precisi

[Bug libstdc++/111747] New: Problem with large float list initialization

2023-10-09 Thread oplata.kes1 at mail dot ru via Gcc-bugs
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: oplata.kes1 at mail dot ru Target Milestone: --- Created attachment 56085 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56085&action=edit *ii file and output I create a vector on stack of 50 (or 500mln)

[Bug c++/105512] compilation with -fmodules-ts and std=c++20 leads to segfault

2023-09-08 Thread mail--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105512 Gerrit Albrecht changed: What|Removed |Added CC||m...@gerrit-albrecht.de --- Comment #

[Bug libstdc++/70472] is_copy_constructible>>::value is true

2023-08-25 Thread safinaskar at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70472 Askar Safin changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[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 libgcc/110956] [13/14 regression] gcc_assert is hit at gcc-13.2.0/libgcc/unwind-dw2-fde.c#L291 with some special library

2023-08-09 Thread ro at manam dot mail-host-address-is-not-set via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110956 --- Comment #6 from ro at manam dot mail-host-address-is-not-set --- > --- Comment #3 from Rainer Orth --- > (In reply to Thomas Neumann from comment #1) >> The assert says that the code tries to de-register a frame that it did not

[Bug c/24542] potential unwanted truncation of operation overflow should be warned on assignment to wider variable

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542 --- Comment #15 from Niklas Hambüchen --- Another common integer overflow bug type is the "for (u32 i = 0; i < u64; ++i)" pattern, as well as general widening comparisons. I filed bug 110933 for those; just linking it here for people interested

[Bug c++/110933] Add warning flags to check against integer overflow

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933 --- Comment #1 from Niklas Hambüchen --- A tangentially related issue is bug 24542 which is about another common overflow bug, the pattern "u64 = u32 * u32". Just linking it here because people interested in solving integer overflow issues may

[Bug c++/110933] New: Add warning flags to check against integer overflow

2023-08-07 Thread mail+gcc at nh2 dot me via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mail+gcc at nh2 dot me Target Milestone: --- GCC currently lacks good compile-time warnings that help find common integer overflow bugs. For example, the code #include void f(uint64_t n

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-28 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #17 from AlexK --- to continue I should add line cp -v prev-libcody/libcody.so libccody/ but why there are so many static libs in prev- directories ? my patches didn't cancel all them ...

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-28 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #16 from AlexK --- I have copied already compileed shared libs into new directories: cp -v prev-libcpp/libcpp.so libcpp/ cp -v prev-libbacktrace/libbacktrace.so libbacktrace/ cp -v prev-libdecnumber/libdecnumber.so libdecnumber/ and

[Bug sanitizer/110814] New: Address Sanitizer misses 'global-buffer-overflow' for const arrays

2023-07-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
ty: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.o

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #15 from AlexK --- I have attached all patches I have made to several Makefile.in in different folders (I created them with `diff` tool) after that I made building directory: installdir=/tools/gcc-12.2.0 install -v -d mybuild cd myb

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #14 from AlexK --- Created attachment 55608 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55608&action=edit applyed patch for gcc/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #13 from AlexK --- Created attachment 55607 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55607&action=edit applyed patch for libcpp/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #12 from AlexK --- Created attachment 55606 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55606&action=edit applyed patch for libbacktrace/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #11 from AlexK --- Created attachment 55605 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55605&action=edit applyed patch for libcody/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #10 from AlexK --- Created attachment 55604 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55604&action=edit applyed patch for libdecnumber/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #9 from AlexK --- Created attachment 55603 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55603&action=edit applyed patch for libiberty/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #8 from AlexK --- Created attachment 55602 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55602&action=edit applyed patch for libgcc/Makefile.in to make shared library

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-22 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #7 from AlexK --- Created attachment 55601 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55601&action=edit applyed patch for Makefile.in to configure with --enable-shared and without --enable-static options

[Bug c++/110749] wrong show float

2023-07-20 Thread alexsyrezerv at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #5 from Aleksei --- this variant more clear.. 4 symbol after point// may by c++ has modification for set symbols after decimal point ? ``` void func_float_point(std::ostream& os, const double& value, const mcx::convert_info_t& cv)

[Bug c++/110749] wrong show float

2023-07-20 Thread alexsyrezerv at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #4 from Aleksei --- ок

[Bug c++/110749] wrong show float

2023-07-20 Thread alexsyrezerv at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110749 --- Comment #2 from Aleksei --- Created attachment 55589 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55589&action=edit GDB SHOW IT But GDB show it normally

[Bug c++/110749] New: wrong show float

2023-07-19 Thread alexsyrezerv at mail dot ru via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: alexsyrezerv at mail dot ru Target Milestone: --- Created attachment 55586 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55586&action=edit To try on different compillers Code: ``` #include #include void func_float_point(std::ostr

[Bug bootstrap/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-17 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #6 from AlexK --- I don't know, I copied it from somewhere I want to compile gcc on x86_64 Linux Mint

[Bug other/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-16 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #4 from AlexK --- where in Makefile gcc copies compiled libs from prev-* stage1 to lib* in stage2 ?

[Bug other/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-16 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #3 from AlexK --- Created attachment 6 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=6&action=edit My system - Linux Mint

[Bug other/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-16 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #2 from AlexK --- Created attachment 5 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=5&action=edit C cannot find libraries from stage1 (they are in prev- folders)

[Bug other/110684] unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-16 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110684 --- Comment #1 from AlexK --- Created attachment 4 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=4&action=edit stage1 success config.log mybuild/config.log at successful stage1

[Bug other/110684] New: unknown spec function ‘dumps’ error, C compiler cannot create executables

2023-07-16 Thread alexei_sylver1 at mail dot ru via Gcc-bugs
: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: alexei_sylver1 at mail dot ru Target Milestone: --- Created attachment 3 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3&action=edit dumps error desc

[Bug target/110096] Would be nice if __builtin_ia32_pause had a portable equivalent as it's applicable to ARM

2023-06-02 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110096 andysem at mail dot ru changed: What|Removed |Added CC||andysem at mail dot ru

[Bug sanitizer/110099] New: GCC's Address Sanitizer misses 'stack-use-after-scope' when accessing variable from the same scope

2023-06-02 Thread egor_suvorov at mail dot ru via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, j

[Bug c++/109923] New: Template friend function defined in a template class becomes a friend of all instantiations, not one

2023-05-21 Thread egor_suvorov at mail dot ru via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- The following code is accepted by all versions of GCC that I tried (including "trunk"

[Bug c++/97700] Bogus error when a class containing a function pointer is used as a non-type template parameter

2023-05-09 Thread mail at lboeger dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97700 --- Comment #5 from Lukas Böger --- One part of this seems to be resolved with version 13. Below, only the lambda use case fails to compile, whereas prior to version 13, both type aliases are rejected: ``` void fun() {} struct S { void (*f

[Bug c++/109761] Nested class destructor's noexcept specification incorrectly considered as too loose compared to the outer class

2023-05-06 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109761 --- Comment #2 from andysem at mail dot ru --- I don't see how completeness of outer is related to nested's destructor. Or put it another way, how nested's destructor noexcept specification has anything to do with outer, whether

[Bug c++/109761] New: Nested class destructor's noexcept specification incorrectly considered as too loose compared to the outer class

2023-05-06 Thread andysem at mail dot ru via Gcc-bugs
rsion: 11.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andysem at mail dot ru Target Milestone: --- Consider the following piece of code: template< typena

[Bug libstdc++/109606] Unguarded `__is_same` builtin usage

2023-04-24 Thread akaraevz at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109606 --- Comment #4 from Alexander --- ^ I meant `__is_same`, not `__same_as` (typo)

[Bug libstdc++/109606] Unguarded `__is_same` builtin usage

2023-04-24 Thread akaraevz at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109606 --- Comment #3 from Alexander --- (In reply to Jonathan Wakely from comment #1) > Yes. Using libstdc++ headers with older **or newer** versions of GCC is > completely unsupported. For other compilers, they need to be sufficiently > close to GCC,

[Bug libstdc++/109606] New: Unguarded `__is_same` builtin usage

2023-04-24 Thread akaraevz at mail dot ru via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: akaraevz at mail dot ru Target Milestone: --- Hello. This commit (https://github.com/gcc-mirror/gcc/commit/17855eed7fc76b2cee7fbbc26f84d3c8b99be13c) introduces new helper function `__find_uniq_type_in_pack` that uses `__is_same

[Bug target/98612] _mm_comieq_sd has wrong semantics

2023-03-24 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98612 andysem at mail dot ru changed: What|Removed |Added CC||andysem at mail dot ru

[Bug c++/101361] Bogus -Wstringop-overread warning with -O3

2023-03-20 Thread mail+gnu at tzik dot jp via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101361 --- Comment #13 from Taiju Tsuiki --- I saw a similar inaccurate -Wstringop-overread warning with a smaller reproducer (attached). https://wandbox.org/permlink/EPjH0ZPoA4EWky0e Reproducing gcc was tip of trunk ( https://github.com/gcc-mirror/gc

  1   2   3   4   5   6   7   8   9   10   >