[Bug tree-optimization/121004] float_var*0.0f if we know a is either -0.0 or 0.0 can be just done as copysign(0.0, a)

2025-07-08 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121004 --- Comment #3 from Harald van Dijk --- I think comment #0's f could be optimised even more to just return a;

[Bug c/120978] Punctuators that contain # or %: are incorrectly rejected within attributes

2025-07-06 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120978 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug libstdc++/118681] [C++17] unsynchronized_pool_resource may fail to respect alignment

2025-07-03 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118681 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/120729] New: Compilation takes forever with -Wuninitialized

2025-06-20 Thread harald at gigawatt dot nl via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- Created attachment 61669 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61669&action=edit X86RecognizableInstr.cpp.ii.gz I'm not really sure where the pr

[Bug preprocessor/120421] -save-temps affects diagnostic position

2025-05-23 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120421 --- Comment #5 from Harald van Dijk --- (In reply to Andrew Pinski from comment #4) > But printing out the preprocessed line is equally as wrong in many cases. > Especially when it comes to `#line` markers. That is it is there is no > correct an

[Bug preprocessor/120421] -save-temps affects diagnostic position

2025-05-23 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120421 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug cobol/119215] -Wodr and -Wlto-type-mismatch issues in cobol

2025-05-23 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119215 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/109214] extension to C language allowing void * to be cast to function pointer should be documented

2025-05-07 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109214 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/116082] -Wunterminated-string-initialization should not warn about strings that end with "\0" but should warn still for -Wc++-compat

2025-04-26 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116082 --- Comment #9 from Harald van Dijk --- (In reply to Alejandro Colomar from comment #8) > (In reply to Harald van Dijk from comment #7) > > The warning is called -Wunterminated-string-initialization, but there is no > > unterminated string. That

[Bug c/116082] -Wunterminated-string-initialization should not warn about strings that end with "\0" but should warn still for -Wc++-compat

2025-04-26 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116082 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug middle-end/119693] GCC assumes wrong bounds for strlen() return value, causing bogus bounds check elimination

2025-04-09 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119693 --- Comment #9 from Harald van Dijk --- (In reply to Jann Horn from comment #8) > (In reply to Harald van Dijk from comment #7) > > I think implementations have two valid ways of dealing with this: either > > malloc must fail to allocate such a

[Bug middle-end/119693] GCC assumes wrong bounds for strlen() return value, causing bogus bounds check elimination

2025-04-09 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119693 --- Comment #7 from Harald van Dijk --- (In reply to Jakub Jelinek from comment #5) > but you shouldn't call standard string/memory functions on it, > you are then on your own to deal with it. Does the standard say so anywhere? Yes, it says poi

[Bug middle-end/119693] GCC assumes wrong bounds for strlen() return value, causing bogus bounds check elimination

2025-04-09 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119693 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug analyzer/109027] [13/14/15 Regression] ICE: SIGSEGV (infinite recursion in ana::constraint_manager::eval_condition / ana::constraint_manager::impossible_derived_conditions_p) with -fanalyzer sinc

2025-03-10 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109027 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/118230] `std::is_invocable` gives wrong result when the tested function returns `auto`

2024-12-28 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118230 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/118095] nonstring attribute cannot be applied to array of char arrays

2024-12-17 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118095 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug other/116834] "warning: null format string" false positive with UBSAN

2024-11-03 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116834 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-07 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug preprocessor/115903] libcpp/macro.cc:528:19: style: Obsolete function 'asctime' called

2024-07-13 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115903 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/115566] Arrays of character type initialized with parenthesized string literals shouldn't be diagnosed with -pedantic (at least in C23)

2024-06-22 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115566 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/115222] gcc ignores noexcept on fields' deconstructors in an union

2024-05-25 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115222 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug libstdc++/114645] std::chrono::current_zone ignores $TZ on Linux

2024-04-09 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114645 --- Comment #21 from Harald van Dijk --- (In reply to Jonathan Wakely from comment #20) > (In reply to Harald van Dijk from comment #18) > > (In reply to Jonathan Wakely from comment #16) > > > ... incorrectly though? > > > > Given that you hav

[Bug libstdc++/114645] std::chrono::current_zone ignores $TZ on Linux

2024-04-09 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114645 --- Comment #18 from Harald van Dijk --- (In reply to Jonathan Wakely from comment #16) > ... incorrectly though? Given that you have expressed your view that *any* attempt at using TZ is inherently incorrect, I am not surprised that you view l

[Bug libstdc++/114645] std::chrono::current_zone ignores $TZ on Linux

2024-04-09 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114645 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/114526] ISO C does not prohibit extensions: fix misconception.

2024-04-03 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114526 --- Comment #20 from Harald van Dijk --- (In reply to Kaz Kylheku from comment #19) Needless to say I still disagree, but I interpreted your comment #17 as suggesting this aspect of the discussion is neither necessary nor useful for this bug, a

[Bug c/114526] ISO C does not prohibit extensions: fix misconception.

2024-04-02 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114526 --- Comment #18 from Harald van Dijk --- (In reply to Kaz Kylheku from comment #17) > The standrad does not define the conversion at the *type* level. > ... > The program is strictly conforming because it has no problem with type. The DRs I ref

[Bug c/114526] ISO C does not prohibit extensions: fix misconception.

2024-04-02 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114526 --- Comment #16 from Harald van Dijk --- (In reply to Joseph S. Myers from comment #15) > In the cases where there is no statement either way, the behavior is > undefined as a property of the translation unit (not just of the execution): > it is

[Bug c/114526] ISO C does not prohibit extensions: fix misconception.

2024-04-02 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114526 --- Comment #14 from Harald van Dijk --- (In reply to Joseph S. Myers from comment #11) > I think that simply failing to say whether a value of type X may be > converted to type Y is clearly enough for it at least to be unspecified > whether or

[Bug c/114526] ISO C does not prohibit extensions: fix misconception.

2024-04-02 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114526 --- Comment #10 from Harald van Dijk --- Sorry, sent my earlier comment too soon. (In reply to Joseph S. Myers from comment #8) > I believe conversions between function and object pointers are undefined as > a property of the translation unit -

[Bug c/114526] ISO C does not prohibit extensions: fix misconception.

2024-04-02 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114526 --- Comment #9 from Harald van Dijk --- (In reply to Joseph S. Myers from comment #8) > "rejects", in the ISO C sense, only applies to errors and pedwarns in GCC; > not to warnings conditional on -pedantic (of which there are also some, but > wh

[Bug c/114526] ISO C does not prohibit extensions: fix misconception.

2024-03-28 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114526 --- Comment #6 from Harald van Dijk --- (In reply to Joseph S. Myers from comment #5) > The -pedantic documentation was updated to reflect reality - that the option > is about more than just when diagnostics are required by ISO C ("forbidden > e

[Bug c/114526] ISO C does not prohibit extensions: fix misconception.

2024-03-28 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114526 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug tree-optimization/114363] inconsistent optimization of pow(x,2)+pow(y,2)

2024-03-16 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114363 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/114163] Calling member function of an incomplete type compiles in gcc and does not compile in clang and msvc

2024-02-29 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114163 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug middle-end/94083] inefficient soft-float x!=Inf code

2024-02-28 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94083 --- Comment #7 from Harald van Dijk --- (In reply to Joseph S. Myers from comment #6) > Contrary to what was claimed in bug 66462, I don't think there ever was a > fixed patch. Note that in bug 66462 comment 19, "June" is June 2017 but > "Novembe

[Bug middle-end/94083] inefficient soft-float x!=Inf code

2024-02-28 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94083 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/114104] nodiscard not diagnosed on synthesized operator!=

2024-02-25 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114104 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug middle-end/113959] Optimize `__builtin_isnan(x) || __builtin_isinf(x)` to `__builtin_isfinite(x)`

2024-02-16 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113959 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 --- Comment #13 from Harald van Dijk --- (In reply to Marek Polacek from comment #12) > Thank for your comment. In the end I went with > > -std=c++03 -pedantic-errors -Wextra-semi -> warnings > -std=c++03 -pedantic -Wextra-semi -> warnings (no

[Bug c++/113760] [DR1693] gcc rejects valid empty-declaration in pedantic mode

2024-02-12 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function

2024-02-09 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 --- Comment #14 from Harald van Dijk --- (In reply to Bo Wang from comment #13) > (In reply to Harald van Dijk from comment #12) > > (In reply to Bo Wang from comment #11) > > > I have read the working draft standard of C++20 > > > (https://gith

[Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function

2024-02-08 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113830 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug sanitizer/113628] -fsanitize=undefined failed to check a signed integer overflow

2024-01-27 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113628 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/113110] GCC rejects call to more specialized const char array version with string literal

2023-12-22 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113110 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug tree-optimization/113049] Compiles to strlen even with -fno-builtin-strlen -fno-optimize-strlen

2023-12-17 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113049 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/44179] warn about sizeof(char) and sizeof('x')

2023-12-16 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44179 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug driver/13071] no easy way to exclude backward C++ headers from include path

2022-03-17 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13071 --- Comment #10 from Harald van Dijk --- (In reply to Jonathan Wakely from comment #9) > (In reply to Harald van Dijk from comment #8) > > (In reply to Andrew Pinski from comment #7) > > > Isn't doing the extern "C" around standard C++ headers de

[Bug driver/13071] no easy way to exclude backward C++ headers from include path

2021-09-06 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13071 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/102201] Accepts invalid C++98 with nested class and sizeof of outer's non-static field

2021-09-04 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102201 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug libstdc++/58876] No non-virtual-dtor warning in std::unique_ptr

2021-08-31 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58876 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-18 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953 --- Comment #27 from Harald van Dijk --- (In reply to jos...@codesourcery.com from comment #25) > The option to use to detect this is -fsanitize=float-cast-overflow (note: > I haven't tested if it detects this particular case). As per the manu

[Bug c/101953] bug on the default cast operator from double to unsigned short

2021-08-18 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101953 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug preprocessor/101638] [11/12 Regression] ICE with -Wtraditional since r11-4953-g1d00f8c86324c40a

2021-08-11 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101638 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug preprocessor/101864] Segmentation fault with -Wtraditional + glibc 2.34

2021-08-11 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101864 Harald van Dijk changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIR

[Bug preprocessor/101864] New: Segmentation fault with -Wtraditional + glibc 2.34

2021-08-11 Thread harald at gigawatt dot nl via Gcc-bugs
Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- This testcase comes from glibc 2.34's sys/cdefs.h, so this is a problem showing up for any program that uses any of glibc's headers with -Wtradition

[Bug libgcc/101489] Documentation gives wrong signatures for libgcc float128 routines

2021-07-28 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101489 --- Comment #2 from Harald van Dijk --- Ah, thanks for the pointer. Agreed that the signatures are correct based on that, but they are not exactly clear as they make it impossible to tell apart the xf and tf cases. Please consider this as an enh

[Bug libgcc/101489] New: Documentation gives wrong signatures for libgcc float128 routines

2021-07-17 Thread harald at gigawatt dot nl via Gcc-bugs
Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- At <https://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html>, all functions that take __float128 / _Float1

[Bug c++/100409] C++ FE elides pure throwing call

2021-07-08 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100409 --- Comment #9 from Harald van Dijk --- (In reply to Richard Biener from comment #8) > It has been consensus that throwing exceptions and const/pure are different > concepts that co-exist. See for example the recent discussion at > https://gcc.

[Bug c++/101376] New: Missing Wsuggest-attribute=const/Wsuggest-attribute=pure for throwing functions, wrong Wattributes for pure/const throwing functions

2021-07-08 Thread harald at gigawatt dot nl via Gcc-bugs
Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- According to PR100409

[Bug c++/100409] C++ FE elides pure throwing call

2021-07-08 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100409 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug libstdc++/101234] Two tests require en_US.ISO-8859-15 but glibc no longer installs that by default.

2021-06-28 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101234 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug sanitizer/71458] ICE with -fsanitize=bounds

2021-06-02 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71458 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/100805] __int128 should be disabled for non-extended -std= options

2021-05-27 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100805 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/100731] [11/12 Regression] GCC 11 fails to build using GCC 4.8 because of missing includes

2021-05-25 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100731 --- Comment #8 from Harald van Dijk --- I take it that means there's no need for me to continue with what Richard asked me to do? At any rate, it looks like this fix won't be enough for GCC 12, but that's an issue with the environment, not GCC

[Bug c++/100731] [11/12 Regression] GCC 11 fails to build using GCC 4.8 because of missing includes

2021-05-25 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100731 --- Comment #6 from Harald van Dijk --- (In reply to rguent...@suse.de from comment #5) > At this point a minimal fix is prefered - in principle the file > should be a valid source to any C++ 11 capable host compiler, not > just GCC. The mainta

[Bug c++/100731] [11/12 Regression] GCC 11 fails to build using GCC 4.8 because of missing includes

2021-05-25 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100731 --- Comment #4 from Harald van Dijk --- (In reply to Richard Biener from comment #3) Yes, including is enough to get the build to pass. My last point in comment #2, however, means that that leaves things in an inconsistent state and that the r

[Bug bootstrap/100731] GCC 11 fails to build using GCC 4.8 because of missing includes

2021-05-23 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100731 --- Comment #2 from Harald van Dijk --- There are more missing or wrong includes here: looking at the code, it's also using functions from without including that, but that one gets implicitly included for me even on this old G++ so happens to n

[Bug bootstrap/100731] GCC 11 fails to build using GCC 4.8 because of missing includes

2021-05-23 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100731 --- Comment #1 from Harald van Dijk --- The full configure line I used for reproducing this on glibc, btw: ../gcc-11.1.0/configure --prefix=$HOME/gcc-11.1.0-run CC=gcc-4.8.5 CXX=g++-4.8.5 --enable-languages=c,c++

[Bug bootstrap/100731] New: GCC 11 fails to build using GCC 4.8 because of missing includes

2021-05-23 Thread harald at gigawatt dot nl via Gcc-bugs
Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- When building GCC 11 with GCC 4.8 on a platform without _GLIBCXX_USE_C99, the build fails. The result is: ../../gcc-11.1.0/c

[Bug c++/100700] -Wreturn-type has many false positives

2021-05-21 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100700 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/100353] [11/12 Regression] Accepts invalid label

2021-04-30 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100353 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c++/100309] [11 regression] false positive -Wstringop-overflow/stringop-overread/array-bounds on reinterpret_cast'd integers

2021-04-28 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100309 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl

[Bug c/99577] New: Non-constant (but actually constant) initializers referencing other constants no longer diagnosed as of GCC 8

2021-03-13 Thread harald at gigawatt dot nl via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- GCC 8 and newer no longer issue an error for const int i = 0; const

[Bug c++/99362] invalid unused result

2021-03-03 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99362 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/97755] Explicit default constructor is called during copy-list-initialization with a warning only

2020-11-08 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97755 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c/97370] comedy of boolean errors for '!a & (b|c)'

2020-10-12 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97370 --- Comment #3 from Harald van Dijk --- (In reply to eggert from comment #2) > That's so unlikely as to not be worth worrying about. See PR 7543 for the history of that warning. > And even if it were > more likely, the same argument would apply

[Bug c/97370] comedy of boolean errors for '!a & (b|c)'

2020-10-11 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97370 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/97279] GCC ignores the operation definition of the template

2020-10-05 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97279 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/60304] Including disables -Wconversion-null in C++ 98 mode

2020-09-05 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60304 --- Comment #31 from Harald van Dijk --- (In reply to Jonathan Wakely from comment #30) > I'm curious why the preprocessed code in comment 28 doesn't warn, This was still bugging me, so I looked into it a little bit, and since I had trouble find

[Bug c/96747] -Wshadow accepts included extern variable shadowing

2020-08-23 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96747 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug fortran/96486] get_environment_variable crashes for environment variables that are empty strings

2020-08-07 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96486 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c/95157] Missing -Wtautological-compare warning

2020-05-16 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95157 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c/95027] -fdiagnostics-urls generates wrong URLs

2020-05-09 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95027 Harald van Dijk changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/95027] New: -fdiagnostics-urls generates wrong URLs

2020-05-09 Thread harald at gigawatt dot nl
Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- $ cat test.c int f() { int i; return i; } $ LC_ALL=C gcc-10.1.0 -Wall -c test.c -fdiagnostics-urls=always 2>&1 | cat -v test.c: In function 'f': test.c:3:10: war

[Bug bootstrap/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET

2020-05-08 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94998 --- Comment #4 from Harald van Dijk --- Just confirming that that patch works for me, thanks.

[Bug target/94998] GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET

2020-05-08 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94998 Harald van Dijk changed: What|Removed |Added Component|bootstrap |target --- Comment #1 from Harald van

[Bug bootstrap/94998] New: GCC 10 won't configure for host=x86, build!=host, linker=bfd due to CET

2020-05-08 Thread harald at gigawatt dot nl
erity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: harald at gigawatt dot nl Target Milestone: --- Configuring libiberty fails when gcc is configured as ../gcc-10.1.0/configure --build=x86_64-forcecross-linux-gnu -

[Bug target/94892] (x >> 31) + 1 not getting narrowed to compare

2020-05-01 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94892 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/91187] Is it possible to make -Wzero-as-null-pointer-constant learn about extern "C"?

2020-01-28 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91187 --- Comment #9 from Harald van Dijk --- (In reply to Jonathan Wakely from comment #8) > (In reply to Albert Astals Cid from comment #0) > > #define Z_NULL 0 > > N.B. this is actually a bug. Using Z_NULL where a null pointer is expected > might c

[Bug tree-optimization/60540] Don't convert int to float when comparing int with float (double) constant

2019-10-18 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60540 --- Comment #11 from Harald van Dijk --- (In reply to Rich Felker from comment #10) > On this particular target, and on every target of any modern > relevance, (float)16777217 has well-defined behavior. That was exactly the point of my original

[Bug tree-optimization/60540] Don't convert int to float when comparing int with float (double) constant

2019-10-18 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60540 --- Comment #9 from Harald van Dijk --- (In reply to Rich Felker from comment #8) > So arguments about generality to non-Annex-F C > environments are not relevant to the topic here. The comment it was a reply to suggested (possibly unintentional

[Bug tree-optimization/60540] Don't convert int to float when comparing int with float (double) constant

2019-10-18 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60540 --- Comment #7 from Harald van Dijk --- (In reply to Rich Felker from comment #6) > > Only if the int is out of float's range. > > float's range is [-INF,INF] (endpoints included). There is no such thing as > "out of float's range". Floating po

[Bug other/91879] DESTDIR support seems incomplete

2019-09-24 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91879 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/91609] friend declaration not honoured

2019-09-08 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91609 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug go/91621] New: libgo/mksysinfo.sh: please avoid test ==

2019-08-30 Thread harald at gigawatt dot nl
Assignee: ian at airs dot com Reporter: harald at gigawatt dot nl CC: cmang at google dot com Target Milestone: --- r269424 introduced in libgo/mksysinfo.sh: if test "$statfs" == ""; then test == is non-POSIX and not supported in all she

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2019-08-12 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 --- Comment #5 from Harald van Dijk --- (In reply to Darrell Wright from comment #4) > The weird part is, other than compilers don't agree, but the lookup finds it > if you put the template argument in The idea there seems to be that `class A;`

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2019-08-11 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 --- Comment #3 from Harald van Dijk --- I believe GCC is correct here. [class.friend]p11 (http://eel.is/c++draft/class.friend#11) specifies that `friend class A;`, with an unqualified name, does not find the global scope class A, but makes a (nev

[Bug driver/29931] following argv[0] symlink in process_command breaks symlinked-together toolchain

2019-08-11 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29931 --- Comment #11 from Harald van Dijk --- Thinking about this a bit more, the logic should probably be: pick a file known to exist. libgcc.a could be a good candidate, but there could be better options. Look this up twice, once following symlinks,

[Bug c++/91418] Nested class of templated class cannot declare parent class friend

2019-08-11 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91418 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug c++/91314] Confusing warning refers to nonexistent comma operator

2019-08-01 Thread harald at gigawatt dot nl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91314 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

  1   2   3   >