[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 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 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 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 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 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++/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++/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 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++/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++/29235] New: Memory corruption (double fclose()?) with syntax error and -frepo in cc1plus when .rpo exists.

2006-09-26 Thread jukkaho at mail dot student dot oulu dot fi
rmal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jukkaho at mail dot student dot oulu dot fi GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29235

[Bug target/32893] zlib segfault in inflate_table() compiled w/ -O -msse2 ftree-vectorize

2007-08-14 Thread jigorou3 at mail dot goo dot ne dot jp
--- Comment #6 from jigorou3 at mail dot goo dot ne dot jp 2007-08-14 17:46 --- It looks like zlib compiled w/ -O -msse -ftree-vectorize (built with fedora's rpm package gcc-4.1.2-17) has same problem. In my environment, rpm-4.4.2.1-7.fc8 and seamonkey-1.1.3-6.fc8 segfault

[Bug target/32893] zlib segfault in inflate_table() compiled w/ -O -msse2 ftree-vectorize

2007-09-20 Thread jigorou3 at mail dot goo dot ne dot jp
--- Comment #10 from jigorou3 at mail dot goo dot ne dot jp 2007-09-20 10:43 --- Created an attachment (id=14228) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14228&action=view) zlib testcase(zlib's inftrees.c) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32893

[Bug target/32893] zlib segfault in inflate_table() compiled w/ -O -msse2 ftree-vectorize

2007-09-22 Thread jigorou3 at mail dot goo dot ne dot jp
--- Comment #13 from jigorou3 at mail dot goo dot ne dot jp 2007-09-22 11:28 --- (In reply to comment #12) Hmm..., but in my environment, some applications always segfaults at zlib which was built with -O -msse -ftree-vectorize. I'm sorry, but now I recognize that I don't h

[Bug awt/16203] need to kill awt helper threads on gui app exit

2008-02-17 Thread chris dot pickett at mail dot mcgill dot ca
--- Comment #7 from chris dot pickett at mail dot mcgill dot ca 2008-02-18 00:31 --- If I ever update SableVM's Classpath and it's still broken I'll reopen it. However, maybe you should check that the duplicate is also fine: http://gcc.gnu.org/bugzilla/show_b

[Bug c/6906] warn about asserts with side effects

2008-03-02 Thread chris dot pickett at mail dot mcgill dot ca
--- Comment #5 from chris dot pickett at mail dot mcgill dot ca 2008-03-03 02:55 --- Maybe you could fix the preprocessor to warn about operators with known side effects. Can cpp see the entire expr in assert (expr)? If so, just search the tokens for =, ++, --, +=, -=, etc

[Bug c/39641] New: Compiling Linux 2.6.28.6 ends with a segfault

2009-04-04 Thread lasse-gccbug-2009 at mail dot plastictree dot net
2.6.28.6 ends with a segfault Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lasse-gccbug-2009 at mail dot plastictree dot net GCC

[Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault

2009-04-04 Thread lasse-gccbug-2009 at mail dot plastictree dot net
--- Comment #1 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-04 22:27 --- Created an attachment (id=17588) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17588&action=view) Preprocessed source file The file is over 1 MB when uncompressed. --

[Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault

2009-04-04 Thread lasse-gccbug-2009 at mail dot plastictree dot net
--- Comment #2 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-04 22:29 --- Created an attachment (id=17589) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17589&action=view) Kernel configuration which triggers the problem Maybe this can help. The problem i

[Bug c/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c

2009-04-05 Thread lasse-gccbug-2009 at mail dot plastictree dot net
--- Comment #3 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-05 15:19 --- Segfault does not occur when omitting '-ffreestanding'. Segfault does not occur when using '-save-temps'. When I add '-save-temps' to 'arch/x86/Make

[Bug middle-end/39641] Compiling Linux 2.6.28.6 ends with a segfault on net/core/skbuff.c

2009-04-22 Thread lasse-gccbug-2009 at mail dot plastictree dot net
--- Comment #5 from lasse-gccbug-2009 at mail dot plastictree dot net 2009-04-23 06:42 --- (In reply to comment #4) > Can you give the output of gcc -v? > Using built-in specs. Target: i686-pc-linux-gnu Configured with: /package/host/localhost/sepbuilt/gcc41-4.1.2-01-03/src/

[Bug c++/98691] New: co_await in a conditional operator evaluates an unreachable code

2021-01-14 Thread mail+gnu at tzik dot jp via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mail+gnu at tzik dot jp Target Milestone: --- In the repro case below, `foo()` in `co_return false ? co_await foo() : 1;` should not be evaluated, and we should not see "NOTREACHED&

[Bug c++/98935] New: [coroutines] co_await on statement expressions causes ICE

2021-02-02 Thread mail+gnu at tzik dot jp via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mail+gnu at tzik dot jp Target Milestone: --- In a repro case below, `co_await ({auto x = future{}; x;});` causes an internal compiler error. https://wandbox.org/permlink/3jX83p34mVDfBgc1 The

[Bug c++/98976] New: [coroutines] co_return in a switch statement doesn't make a generic lambda non-constexpr

2021-02-05 Thread mail+gnu at tzik dot jp via Gcc-bugs
IRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mail+gnu at tzik dot jp Target Milestone: --- In a repro case below, the lambda is wrongly handled as a constexpr and its co_return causes a compile error,

[Bug AWT/16203] need to kill awt helper threads on gui app exit

2005-01-12 Thread chris dot pickett at mail dot mcgill dot ca
--- Additional Comments From chris dot pickett at mail dot mcgill dot ca 2005-01-12 14:03 --- Thank-you kindly. Can you summarize your solution? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16203

[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 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++/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 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/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++/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 Taiju Tsuiki changed: What|Removed |Added CC||mail+gnu at tzik dot jp --- Comment #12

[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

[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/29774] New: enum int type gets promoted to unsigned int in comparison

2006-11-08 Thread chris dot pickett at mail dot mcgill dot ca
Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot pickett at mail dot mcgill dot ca http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29774

[Bug c/29774] enum int type gets promoted to unsigned int in comparison

2006-11-08 Thread chris dot pickett at mail dot mcgill dot ca
--- Comment #2 from chris dot pickett at mail dot mcgill dot ca 2006-11-09 04:46 --- I got confused. It's only the enum constant that must be int. Indeed, if the comparison is `if (FOO >= 0)', no warning is issued and all is well. Thanks for the extremely fast response!

[Bug driver/30437] New: -Wno-all is rejected

2007-01-11 Thread chris dot pickett at mail dot mcgill dot ca
: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot pickett at mail dot mcgill dot ca http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30437

[Bug fortran/30437] [4.0/4.1/4.2/4.3 Regression] -Wno-all is rejected when fortran is included

2007-01-13 Thread chris dot pickett at mail dot mcgill dot ca
--- Comment #3 from chris dot pickett at mail dot mcgill dot ca 2007-01-14 06:06 --- I don't think that's the right explanation. cc1: error: unrecognized command line option "-Wno-all" ... --enable-languages=c ... gcc version 4.3.0 20070110 (experimental) Althoug

[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/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 fortran/36309] New: gfrotran and cc1 error

2008-05-23 Thread kih at mail dot nerc-essc dot ac dot uk
Summary: gfrotran and cc1 error Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kih at mail dot nerc-essc dot ac d

[Bug fortran/36309] gfortran and cc1 error

2008-05-23 Thread kih at mail dot nerc-essc dot ac dot uk
--- Comment #3 from kih at mail dot nerc-essc dot ac dot uk 2008-05-23 20:45 --- Subject: RE: gfrotran and cc1 error Hi Thanks for the response. I was actually installing software on someone else's system (with their permission) which was an apple machine. I will chec

[Bug fortran/36309] gfortran and cc1 error

2008-05-23 Thread kih at mail dot nerc-essc dot ac dot uk
--- Comment #4 from kih at mail dot nerc-essc dot ac dot uk 2008-05-23 20:52 --- Subject: RE: gfrotran and cc1 error Hi 'gfortran -v' and 'gcc -v' report: gfortran -v Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /Builds/apple

[Bug fortran/36309] gfortran and cc1 error

2008-05-27 Thread kih at mail dot nerc-essc dot ac dot uk
--- Comment #6 from kih at mail dot nerc-essc dot ac dot uk 2008-05-27 19:57 --- Subject: RE: gfortran and cc1 error The distribution came from: http://r.research.att.com/tools/ so I guess I should take it up with them. Regards Kevin -Original Message- From: fxcoudert at

[Bug middle-end/44081] Incorrect nonnull assumed in code generation

2010-05-11 Thread pmoulder at mail dot csse dot monash dot edu dot au
--- Comment #6 from pmoulder at mail dot csse dot monash dot edu dot au 2010-05-12 05:29 --- Part of the problem is a documentation bug: the nonnull attribute's parameter is named "arg-index", suggesting that the first parameter is 0, while the example strongly suggests

[Bug middle-end/44081] Incorrect nonnull assumed in code generation

2010-05-12 Thread pmoulder at mail dot csse dot monash dot edu dot au
--- Comment #8 from pmoulder at mail dot csse dot monash dot edu dot au 2010-05-12 09:25 --- OK, on careful reading, I agree re memcpy etc. (see below). Consequently, I amend my suggested change to the documentation to: - Add a sentence about implicit `this' argument (c

[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

<    6   7   8   9   10   11