[Bug rtl-optimization/100317] New: 64-bit integer compare gives wrong result when MIN_INT64 is one of the operands

2021-04-28 Thread peshkoff at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: peshkoff at mail dot ru Target Milestone: --- Created attachment 50701 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50701&action=ed

[Bug rtl-optimization/100317] 64-bit integer compare gives wrong result when MIN_INT64 is one of the operands

2021-04-28 Thread peshkoff at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100317 Alex Peshkoff changed: What|Removed |Added Known to work||10.2.0 --- Comment #2 from Alex Peshkof

[Bug c++/100240] Compiler crashes with segmentation fault on a chrono library using nvcc

2021-04-28 Thread taraba.peter at mail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100240 Peter Taraba changed: What|Removed |Added Resolution|--- |DUPLICATE Status|WAITING

[Bug c++/100102] [8/9/10/11/12 Regression] ICE in tsubst, at cp/pt.c:15310

2021-04-28 Thread taraba.peter at mail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102 Peter Taraba changed: What|Removed |Added CC||taraba.peter at mail dot com

[Bug c++/100462] New: g++ fails to find the a pre-compiled header

2021-05-06 Thread mail at 3v1n0 dot net via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mail at 3v1n0 dot net Target Milestone: --- Unfortunately I've not a minimal test case for this, but in gjs we can't use pre-compiled headers with g++ (while they work fine with clang++). In particular, we get

[Bug c++/100462] g++ fails to find a generated pre-compiled header

2021-05-06 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462 --- Comment #1 from Marco Trevisan --- Some verbose logging: unstable /data/GNOME/gjs ❯ echo $PWD /data/GNOME/gjs unstable /data/GNOME/gjs ❯ ls _build/libgjs.so.0.0.0.p -lht total 119M -rw-rw-r-- 1 m

[Bug c++/100462] g++ fails to find a generated pre-compiled header

2021-05-07 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462 --- Comment #3 from Marco Trevisan --- Created attachment 50775 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50775&action=edit strace.log This is crazy, as even according to strace the file isn't there... But it is and it's valid. ❯ ls

[Bug c++/100462] g++ fails to find a generated pre-compiled header

2021-05-07 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462 --- Comment #4 from Marco Trevisan --- (In reply to Marco Trevisan from comment #3) > Created attachment 50775 [details] > strace.log > > This is crazy, as even according to strace the file isn't there... > > But it is and it's valid. > ❯ ls -

[Bug c++/100462] g++ fails to find a generated pre-compiled header

2021-05-07 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462 --- Comment #6 from Marco Trevisan --- (In reply to Jakub Jelinek from comment #5) > As documented - see > https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html - PCH is only > tried if no C token is seen before the #include directive (com

[Bug c++/100462] g++ fails to find a generated pre-compiled header

2021-05-07 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462 --- Comment #7 from Marco Trevisan --- (In reply to Marco Trevisan from comment #6) > # Works > g++ -I _build main.c -o main -include string -include gjs_pch.h Ouch, I forgot to delete an include after pasting # Works g++ -I _build main.c -o

[Bug c++/100462] g++ fails to find a generated pre-compiled header when using `-include`

2021-05-07 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462 --- Comment #8 from Marco Trevisan --- It's also relevant to say that just using main.c: #include "gjs_pch.h" int main(int argc, char**argv) { std::string s = "Hi"; return 0; } fails with: ❯ g++ -I _build main.c -o main -include string

[Bug middle-end/100477] New: Bogus -Wstringop-overflow warning on memset

2021-05-07 Thread andysem at mail dot ru via Gcc-bugs
: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: andysem at mail dot ru Target Milestone: --- Consider the following test case: #include #include class Container { public: typedef unsigned char value_type; typedef value_type* pointer; typedef std

[Bug c++/100462] g++ fails to find a generated pre-compiled header when using `-include`

2021-05-07 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462 Marco Trevisan changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c++/100462] g++ fails to find a generated pre-compiled header when using `-include`

2021-05-07 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462 --- Comment #12 from Marco Trevisan --- Well, I see... At least the error should be a bit clearer though.

[Bug middle-end/100477] Bogus -Wstringop-overflow warning on memset

2021-05-10 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100477 andysem at mail dot ru changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution

[Bug middle-end/100477] Bogus -Wstringop-overflow warning on memset

2021-05-10 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100477 --- Comment #3 from andysem at mail dot ru --- To put it another way, the case of _size being large and n small is valid, and memset (and resize in general) do behave correctly in this case. Which is why the warning is bogus and the suggested

[Bug middle-end/100477] Bogus -Wstringop-overflow warning on memset

2021-05-10 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100477 --- Comment #5 from andysem at mail dot ru --- (In reply to Martin Sebor from comment #4) > The case of _size being very large and n very small may be handled correctly > by the original code thanks to the check for _capacity but becau

[Bug middle-end/100477] Bogus -Wstringop-overflow warning on memset

2021-05-10 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100477 --- Comment #7 from andysem at mail dot ru --- (In reply to Martin Sebor from comment #6) > In C/C++ the size of the largest object is PTRDIFF_MAX - 1 bytes. This is > necessary so that the difference between the address of its first by

[Bug middle-end/100477] Bogus -Wstringop-overflow warning on memset

2021-05-12 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100477 --- Comment #9 from andysem at mail dot ru --- (In reply to Martin Sebor from comment #8) > > Submitting a bug for the LTO problem is only helpful if it comes with a test > case to reproduce it. I have heard about problems suppressing

[Bug c++/100570] New: g++ does not suppress bitfield conversion warning even isystem is setted

2021-05-12 Thread fsmoke at mail dot ru via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fsmoke at mail dot ru Target Milestone: --- I set -isystem /usr/local/include/qt5/ to suppress Qt library internal warnings - all warnings are successfully suppressed except

[Bug analyzer/100705] New: warn about dead store

2021-05-20 Thread mail at milianw dot de via Gcc-bugs
Assignee: dmalcolm at gcc dot gnu.org Reporter: mail at milianw dot de Target Milestone: --- Hey there, in a large code base I'm working on I stumbled over code in one area that basically did the below, but in a more elaborate manner. It would have been quite helpful to get a warning

[Bug c++/100764] New: Internal compiler error when unable to deduce template parameter value

2021-05-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- The following snippet, when compiled with `g++ -std=c++20`: template struct LiteralResolver { constexpr

[Bug c++/100764] Internal compiler error when unable to deduce template parameter value

2021-05-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100764 --- Comment #1 from Egor Suvorov --- UPD: compiling with `g++ -v -std=c++20` on Godbolt's GCC 11.1 yields the following information about versions: Using built-in specs. COLLECT_GCC=/opt/compiler-explorer/gcc-11.1.0/bin/g++ Target: x86_64-linux

[Bug sanitizer/100878] New: enabling UBSAN leads to false positive `'this' pointer is null` when casting lambda to function pointer

2021-06-02 Thread mail at milianw dot de via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: mail at milianw dot de CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc d

[Bug c++/108335] New: New-expression doesn't perform mandatory copy elision when copy constructor is disabled with `requires`, in a template

2023-01-08 Thread iamsupermouse at mail dot ru via Gcc-bugs
: gcc Version: 12.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: --- This doesn't compile, but it should:

[Bug target/108401] New: gcc defeats vector constant generation with intrinsics

2023-01-13 Thread andysem at mail dot ru via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: andysem at mail dot ru Target Milestone: --- Consider the following code: #include __m256i load_00FF() { __m256i mm = _mm256_setzero_si256(); return _mm256_srli_epi16(_mm256_cmpeq_epi64(mm, mm), 8

[Bug target/108401] gcc defeats vector constant generation with intrinsics

2023-01-16 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108401 --- Comment #6 from andysem at mail dot ru --- (In reply to Andrew Pinski from comment #1) > >and gcc 12 generates a worse code: > > it is not worse really; depending on the how fast moving between the > register sets is.

[Bug target/108401] gcc defeats vector constant generation with intrinsics

2023-01-16 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108401 --- Comment #7 from andysem at mail dot ru --- To be clear, I'm not asking the compiler to recognize the particular pattern of alternating 0x00 and 0xFF bytes. Because hardcoding this particular pattern won't improve generated cod

[Bug c++/108565] New: -Wuse-after-free false positive on a shared_ptr implementation triggered by -O2

2023-01-26 Thread egor_suvorov at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- May or may not be a duplicate of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106119 Consider the following code

[Bug c++/70476] C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage

2023-03-11 Thread mail at maciej dot szmigiero.name via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476 Maciej S. Szmigiero changed: What|Removed |Added CC||mail at maciej dot szmigiero.name

[Bug c++/70476] C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage

2023-03-11 Thread mail at maciej dot szmigiero.name via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476 --- Comment #11 from Maciej S. Szmigiero --- (In reply to Andrew Pinski from comment #9) > Does these two functions the same name then? > ``` > namespace a { >extern "C" void f(void); > } > > namespace { > extern "C" void f(void) {} > } >

[Bug c++/70476] C++11: Function name declared in unnamed namespace extern "C" gets exernal linkage

2023-03-13 Thread mail at maciej dot szmigiero.name via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476 --- Comment #14 from Maciej S. Szmigiero --- > This is not so useful in practice because most compilers don't make extern > "C" and extern "C++" differentiate function types (implying calling > conventions etc.). The standard allows different

[Bug libgcc/104984] New: Use hard-fp for libgcc single-floating-point routines

2022-03-18 Thread archicharmer at mail dot ru via Gcc-bugs
Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: archicharmer at mail dot ru Target Milestone: --- I am currently using gcc-9.2.0 . At it's last building stage it was compiled using the next configure additions: --prefix=$PREFIX --enable-language

[Bug c++/98056] coroutines: ICE tree check: expected record_type or union_type or qual_union_type, have array_type since r11-2183-g0f66b8486cea8668

2022-03-20 Thread sks_f at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98056 Konstantin changed: What|Removed |Added CC||sks_f at mail dot ru --- Comment #17 from

[Bug c++/103871] [11/12 Regression] co_await causes build error

2022-03-20 Thread sks_f at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103871 Konstantin changed: What|Removed |Added CC||sks_f at mail dot ru --- Comment #7 from

[Bug target/104984] Use hard-fp for libgcc single-floating-point routines

2022-03-22 Thread archicharmer at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104984 --- Comment #1 from Den --- No one?.. Then, let's discourse. These are inside the file t-hardfp-sfdf : hardfp_float_modes := sf df hardfp_int_modes := si hardfp_extensions := sfdf hardfp_truncations := dfsf and these are inside the file t-soft

[Bug target/104984] Use hard-fp for libgcc single-floating-point routines

2022-03-23 Thread archicharmer at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104984 Den changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/88165] error: default member initializer for 'A::B::m' required before the end of its enclosing class

2022-04-22 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88165 --- Comment #13 from andysem at mail dot ru --- (In reply to Jonathan Wakely from comment #10) > (In reply to Fedor Chelnokov from comment #7) > > This struct definition: > > ``` > > struct A { > > struc

[Bug c++/105393] New: A simple for loop becomes an infinite when -O1/2/3 used

2022-04-26 Thread 364961 at mail dot ru via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: 364961 at mail dot ru Target Milestone: --- Created attachment 52884 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52884&action=edit the preprocessed bug's source fi

[Bug c++/105393] A simple for loop becomes an infinite when -O1/2/3 used

2022-04-26 Thread 364961 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105393 Laryushin Aleksandr <364961 at mail dot ru> changed: What|Removed |Added Resolution|INVALID |FIXED

[Bug c++/105393] A simple for loop becomes an infinite when -O1/2/3 used

2022-04-26 Thread 364961 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105393 Laryushin Aleksandr <364961 at mail dot ru> changed: What|Removed |Added Resolution|INVALID |FIXED

[Bug c++/105393] A simple for loop becomes an infinite when -O1/2/3 used

2022-04-27 Thread 364961 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105393 --- Comment #3 from Laryushin Aleksandr <364961 at mail dot ru> --- Sorry, this is my first bug report. >Среда, 27 апреля 2022, 9:54 +03:00 от jakub at gcc dot gnu.org >: >  >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10539

[Bug libstdc++/106676] New: [C++20] Automatic iterator_category detection misbehaves when `::reference` is an rvalue reference, refuses to accept a forward iterator

2022-08-18 Thread iamsupermouse at mail dot ru via Gcc-bugs
: gcc Version: 12.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- Since C++20, `std::iterator_traits

[Bug libstdc++/106676] [C++20] Automatic iterator_category detection misbehaves when `::reference` is an rvalue reference, refuses to accept a forward iterator

2022-08-20 Thread iamsupermouse at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106676 --- Comment #1 from Egor --- I was told this is a wording defect. The `cpp17-forward-iterator` exposition-only concept in https://eel.is/c++draft/iterator.traits only permits lvalue references.

[Bug libstdc++/106808] New: std::string_view range concept requirement causes compile error with Boost.Filesystem

2022-09-01 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: --- Created attachment 53528 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53528&action=edit Prepr

[Bug libstdc++/106808] std::string_view range concept requirement causes compile error with Boost.Filesystem

2022-09-01 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106808 --- Comment #3 from andysem at mail dot ru --- I don't have the environment to build gcc locally, so I can't readily test trunk. But I have been told the same issue reproduces with gcc-12 20220319-1ubuntu1 from Ubuntu 22.04: https://

[Bug libstdc++/106808] std::string_view range concept requirement causes compile error with Boost.Filesystem

2022-09-01 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106808 --- Comment #4 from andysem at mail dot ru --- It fails the same way with 12.2 and trunk on godbolt: https://gcc.godbolt.org/z/rT6TWhhvP

[Bug libstdc++/106808] std::string_view range concept requirement causes compile error with Boost.Filesystem

2022-09-01 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106808 --- Comment #6 from andysem at mail dot ru --- So do you think this is a problem in Boost.Filesystem? I would say this is a regression in string_view as the code is valid in pre-C++23, and I would expect it to stay valid in C++23 onwards

[Bug libstdc++/106808] std::string_view range concept requirement causes compile error with Boost.Filesystem

2022-09-02 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106808 --- Comment #8 from andysem at mail dot ru --- (In reply to Jonathan Wakely from comment #7) > (In reply to andysem from comment #6) > > So do you think this is a problem in Boost.Filesystem? > > I don't know yet, I can

[Bug libstdc++/106808] std::string_view range concept requirement causes compile error with Boost.Filesystem

2022-09-02 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106808 --- Comment #10 from andysem at mail dot ru --- (In reply to andysem from comment #8) > (In reply to Jonathan Wakely from comment #7) > > > > Do you want ODR violations? Because that's how you get ODR violations. > >

[Bug libstdc++/98978] Consider packing _M_Engaged in the tail padding of T in optional<>

2022-09-18 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98978 --- Comment #6 from andysem at mail dot ru --- (In reply to Jonathan Wakely from comment #5) > (In reply to andysem from comment #3) > > Is there no way to improve standard components implementation? I'd imagine > > you c

[Bug c++/107113] New: In function parameter list, `...` expanding a pack is accepted after `()` of a parameter declarator, but not before

2022-10-01 Thread iamsupermouse at mail dot ru via Gcc-bugs
: 12.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- GCC rejects this code: template struct A

[Bug c++/107111] GCC accepts invalid program involving function declaration with pack expansion

2022-10-01 Thread iamsupermouse at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107111 Egor changed: What|Removed |Added CC||iamsupermouse at mail dot ru --- Comment #3

[Bug c++/107113] In function parameter list, `...` expanding a pack is accepted after `()` of a parameter declarator, but not before

2022-10-01 Thread iamsupermouse at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107113 Egor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/107111] GCC accepts invalid program involving function declaration with pack expansion

2022-10-01 Thread iamsupermouse at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107111 --- Comment #4 from Egor --- *** Bug 107113 has been marked as a duplicate of this bug. ***

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2022-10-12 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 Marco Trevisan changed: What|Removed |Added CC||mail at 3v1n0 dot net --- Comment #8

[Bug c++/93821] Define __cplusplus to 202002L in C++20

2022-10-12 Thread mail at 3v1n0 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821 --- Comment #10 from Marco Trevisan --- I see the point, but then I also think that gcc-10 should not support `--std=c++20` option but rather only the `--std=c++2a` one.

[Bug c++/103811] New: [c++20] ICE when a lambda is used as a template argument of another lambda's function parameter

2021-12-22 Thread iamsupermouse at mail dot ru via Gcc-bugs
tatus: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- Following code causes an ICE (segfault): template struct A {}; int main()

[Bug libstdc++/103951] New: [C++2b] string_view range constructor, "exception specification ... depends on itself"

2022-01-09 Thread iamsupermouse at mail dot ru via Gcc-bugs
NCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: iamsupermouse at mail dot ru Target Milestone: --- Following code compiles with -std=c++20 and earlier, but fails with -std=c++2b, in both GCC

[Bug c++/104066] New: "extern constinit long (* const syscall_reexported) (long, ...);" doesn't compile: gcc thinks "constinit" applies to return value, not to function pointer itself

2022-01-17 Thread safinaskar at mail dot ru via Gcc-bugs
, not to function pointer itself Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: safinaskar at mail

[Bug c++/104008] [11/12 Regression] New g++ folly compile error with gcc 11.x. Bisected to PR99445 c++: Alias template in pack expansion

2022-02-14 Thread alex_700_95 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104008 Aleksei Latyshev changed: What|Removed |Added CC||alex_700_95 at mail dot ru

[Bug c++/104567] New: SFINAE check failure starting gcc 4.7.1 and up with -std=c++11

2022-02-16 Thread armenchik at mail dot ru via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: armenchik at mail dot ru Target Milestone: --- template constexpr bool has_char_static_param(int) { return true; } template constexpr bool has_char_static_param(...) { return

[Bug c++/103131] New: -Wpedantic doesn't warn about extra semicolons anymore

2021-11-08 Thread mail at milianw dot de via Gcc-bugs
y: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mail at milianw dot de Target Milestone: --- Starting with GCC 11, we don't see any warnings about extra semicolons anymore: ``` struct foo{};; ``` Compile: ``` g++ -Wall -Wpedantic -Wextra test.cpp

[Bug c++/103131] -Wpedantic doesn't warn about extra semicolons anymore

2021-11-08 Thread mail at milianw dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103131 --- Comment #1 from Milian Wolff --- correction: gcc version 10 and below used to complain

[Bug c++/103362] New: -m option is not ignored when is immediately preceded by -o option

2021-11-22 Thread egor_suvorov at mail dot ru via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor_suvorov at mail dot ru Target Milestone: --- Here is an issue that one of my students encountered today: https://stackoverflow.com/questions/70069809/unrecognized-emulation

[Bug driver/103362] -m option is not ignored when is immediately preceded by -o option

2021-11-22 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103362 --- Comment #2 from Egor Suvorov --- Thank you very much, sent a report there: https://sourceware.org/bugzilla/show_bug.cgi?id=28619

[Bug c/103446] New: Invalid wide multibyte character constant

2021-11-26 Thread zloten at mail dot ru via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: zloten at mail dot ru Target Milestone: --- assert('Z' == 0x5A); assert('Ы' == 0xD0AB); assert('闩' == 0x00E997A9); assert('𠂡' == 0xF0A082A1); assert(U'Z' == 0x5A); assert(U&

[Bug c/103446] Invalid wide multibyte character constant

2021-11-26 Thread zloten at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103446 --- Comment #1 from Zloten --- 56481 = 0xDCA1

[Bug preprocessor/103446] Invalid wide multibyte character constant

2021-11-26 Thread zloten at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103446 --- Comment #3 from Zloten --- No. Just - O2.

[Bug preprocessor/103446] Invalid wide multibyte character constant

2021-11-26 Thread zloten at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103446 --- Comment #5 from Zloten --- I use the latest MinGW, target-host are Windows, x86-64.

[Bug preprocessor/103446] Invalid wide multibyte character constant

2021-11-29 Thread zloten at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103446 --- Comment #7 from Zloten --- It's very very strange. I've tested GCC 11.2.0(x86-64) and MinGW(x86-64). Both have the same problem. Let's do not use L suffix (it's implementation-defined). Let's use u suffix. For both: int test() { return

[Bug preprocessor/103446] Invalid wide multibyte character constant

2021-11-29 Thread zloten at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103446 --- Comment #8 from Zloten --- Sorry for my late reply

[Bug libstdc++/103621] New: stable_sort could call std::__merge_sort_with_buffer directly in typical case

2021-12-08 Thread riad93 at mail dot ru via Gcc-bugs
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: riad93 at mail dot ru Target Milestone: --- So, currently __stable_sort is implemented this way: if (__buf.begin() == 0) std::__inplace_stable_sort(__first

[Bug c++/102293] New: [10 regression] ICE when compiling Boost.Xpressive (in value_dependent_expression_p, at cp/pt.c:26730)

2021-09-12 Thread andysem at mail dot ru via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: andysem at mail dot ru Target Milestone: --- Created attachment 51443 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51443&acti

[Bug c++/102293] [10 regression] ICE when compiling Boost.Xpressive (in value_dependent_expression_p, at cp/pt.c:26730)

2021-09-12 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102293 --- Comment #1 from andysem at mail dot ru --- I forgot to mention that the same code compiles successfully with gcc 9.4.0. And here is the output from gcc 11.1.0: In file included from ./boost/assert.hpp:58, from ./boost

[Bug c++/102293] [10 regression] ICE when compiling Boost.Xpressive (in value_dependent_expression_p, at cp/pt.c:26730)

2021-09-12 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102293 --- Comment #2 from andysem at mail dot ru --- The code compiles if -std=c++03 is replaced with e.g. -std=c++11.

[Bug c++/102293] [10/11/12 Regression] ICE when compiling Boost.Xpressive (in value_dependent_expression_p, at cp/pt.c:26730)

2021-09-13 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102293 --- Comment #4 from andysem at mail dot ru --- (In reply to Martin Liška from comment #3) > Dup. > > *** This bug has been marked as a duplicate of bug 100161 *** This bug isn't about a warning but about an ICE. Are you posi

[Bug c++/102293] [10/11/12 Regression] ICE when compiling Boost.Xpressive (in value_dependent_expression_p, at cp/pt.c:26730)

2021-09-13 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102293 --- Comment #6 from andysem at mail dot ru --- Ok, thanks for confirming.

[Bug libstdc++/98677] std::regex constructor triggers valgrind under clang++ with undefined sanitizer; possible use-after-move

2021-10-09 Thread egor_suvorov at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98677 --- Comment #4 from Egor Suvorov --- Note that the issue requires both UBSanitizer and Valgrind enabled simultaneously. Running with just one of them does not result in an error. The versions are ones installed in Ubuntu 20.04.3 Focal Fossa (amd

[Bug sanitizer/102984] New: strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread mail at milianw dot de via Gcc-bugs
Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: mail at milianw dot de CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot

[Bug sanitizer/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread mail at milianw dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 --- Comment #2 from Milian Wolff --- Similarly: std::vector locks(10); // works std::vector locks(10, spinlock()); // doesn't work This report here was motivated by stumbling over this report over at https://github.com/efficient/libcuckoo/issu

[Bug libstdc++/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-29 Thread mail at milianw dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 Milian Wolff changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

[Bug fortran/107501] New: Aliasing warning not working properly in certain situations

2022-11-01 Thread mhbalsmeier at mail dot de via Gcc-bugs
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mhbalsmeier at mail dot de Target Milestone: --- Created attachment 53816 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53816&action=edit source file Hi

[Bug c/107554] New: Segmentation fault during GIMPLE pass: strlen (tree-ssa-strlen.cc:4772)

2022-11-07 Thread nik_1357 at mail dot ru via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nik_1357 at mail dot ru Target Milestone: --- Hello. Test which causes the bug: #include #define ELEMS 0x4000 int a[ELEMS]; int b[ELEMS]; int main() { memcpy(a, b

[Bug c/107554] Segmentation fault during GIMPLE pass: strlen (tree-ssa-strlen.cc:4772)

2022-11-07 Thread nik_1357 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107554 --- Comment #1 from Nikita Voronov --- I debugged a little and found out that this bug is caused when size of object which has type of "long int" is being assigned to local variable of type "int". Here's patch which fixed bug for me: diff --git

[Bug c/107554] Segmentation fault during GIMPLE pass: strlen (tree-ssa-strlen.cc:4772)

2022-11-07 Thread nik_1357 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107554 --- Comment #2 from Nikita Voronov --- Seems like I attached call stack from previous release version. Here's from master: 0xf0ad0f crash_signal ../../../gcc/gcc-master/gcc/toplev.cc:314 0x7f6b9445d51f ??? ./signal/../sysdeps/uni

[Bug sanitizer/64234] Statically sanitized executable does not export ASan symbols

2022-11-11 Thread mkh199740 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64234 --- Comment #8 from lo1ol --- https://www.youtube.com/watch?v=Ua3TiOSwVTI

[Bug tree-optimization/80635] [10 regression] std::optional and bogus -Wmaybe-uninitialized warning

2022-11-16 Thread mail at milianw dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635 Milian Wolff changed: What|Removed |Added CC||mail at milianw dot de --- Comment #69

[Bug c++/107773] New: Class members do not hide nested types

2022-11-20 Thread eiband at mail dot de via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: eiband at mail dot de Target Milestone: --- The following program exits with code 1. test.cpp: struct a { using get = void; }; struct b : a { int get(int i) const; }; template concept c = requires { typename T::get

[Bug c/107841] New: Incorrect generation of the function's epilogue code when there is a _builtin_alloca call.

2022-11-23 Thread avo2000 at mail dot ru via Gcc-bugs
IRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: avo2000 at mail dot ru Target Milestone: --- Incorrect generation of the function's epilogue code when there is a _builtin_alloca call. The stack

[Bug target/107841] Incorrect generation of the function's epilogue code when there is a _builtin_alloca call.

2022-11-24 Thread avo2000 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107841 --- Comment #2 from Alexander --- Source code: void qq(int a) { char *s = alloca(128); sprintf(s,"qq %d",3); } Generated code: 040c <_qq>: 40c: 1166mov r5, -(sp) 40e: 1185mov s

[Bug bootstrap/108186] New: Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-20 Thread alexei1.84 at mail dot ru via Gcc-bugs
: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: alexei1.84 at mail dot ru Target Milestone: --- Created attachment 54129 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54129&action=edit configure and make l

[Bug bootstrap/108186] Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-20 Thread alexei1.84 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186 --- Comment #3 from AlexK --- (In reply to Andrew Pinski from comment #2) > Does this comparison failure happen if you set LANG environment variable to > C before doing a bootstrap? > If it please let us know which your environment variables so

[Bug bootstrap/108186] Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-21 Thread alexei1.84 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186 --- Comment #4 from AlexK --- Created attachment 54140 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54140&action=edit --without-build-config: => zstd link error zstd link error

[Bug bootstrap/108186] Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-21 Thread alexei1.84 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186 --- Comment #5 from AlexK --- (In reply to Richard Biener from comment #1) > can you try configuring with --without-build-config please? first small error - zstd link I will change Makefile in gcc see mylog.tar.gz attachment

[Bug bootstrap/108186] Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-21 Thread alexei1.84 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186 --- Comment #6 from AlexK --- (In reply to Richard Biener from comment #1) > can you try configuring with --without-build-config please? /mnt/Git/apt-build/build/gcc-12.2.0/build $ ../configure --prefix=/tools/gcc-12.2.0 --without-build-conf

[Bug bootstrap/108186] Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-21 Thread alexei1.84 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186 --- Comment #7 from AlexK --- (In reply to Richard Biener from comment #1) > can you try configuring with --without-build-config please? I changed gcc/Makefile by sed -i 's/^ZSTD_LIB[ ]*=.*$/ZSTD_LIB = -lzstd/' gcc/Makefile and continued .

[Bug bootstrap/108186] Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-21 Thread alexei1.84 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186 --- Comment #8 from AlexK --- (In reply to Richard Biener from comment #1) > can you try configuring with --without-build-config please? make[2]: вход в каталог «/mnt/Git/apt-build/build/gcc-12.2.0/build/c++tools» /mnt/Git/apt-build/build/gcc-1

[Bug bootstrap/108186] Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-21 Thread alexei1.84 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186 --- Comment #9 from AlexK --- (In reply to Richard Biener from comment #1) > can you try configuring with --without-build-config please? that was my influence - I have compiled binutils with shared intl continue ...

[Bug bootstrap/108186] Bootstrap comparison failure.gcc-12.2.0 differs gcc/plugin.o gcc/gcc.o

2022-12-21 Thread alexei1.84 at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108186 --- Comment #10 from AlexK --- (In reply to Richard Biener from comment #1) > can you try configuring with --without-build-config please? now there are 2 problems in libgo links 1) no ../libbacktrace/libbacktrace.la I had to change it to ../../

<    4   5   6   7   8   9   10   11   >