[Bug tree-optimization/115274] Bogus -Wstringop-overread in SQLite source code

2024-05-29 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115274 --- Comment #4 from Boris Kolpackov --- > Please try compress it. I did try with xz -9e and it was still 1.5M (the limit is 1M). I doubt any compression method will be able to shave those 50% off.

[Bug tree-optimization/115274] Bogus -Wstringop-overread in SQLite source code

2024-05-29 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115274 --- Comment #2 from Boris Kolpackov --- Ok, I couldn't attach the source file due to size limits, but you can get it from https://sqlite.org/download.html . I get this warning with the latest version, which is 3.46.0 at the time of this

[Bug c/115274] New: Bogus -Wstringop-overread in SQLite source code

2024-05-29 Thread boris at kolpackov dot net via Gcc-bugs
: c Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Compiled attached sqlite3.c from recent SQLite release with GCC 14 and -O3 produces the following bogus (according to our analysis) warning: $ gcc-14 -O3 -c sqlite3.c

[Bug plugins/86441] instantiate_class_template() unable to re-execute constexpr function

2024-05-27 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86441 --- Comment #5 from Boris Kolpackov --- Sorry, somehow I missed the request for more information. This is happening on the first PLUGIN_OVERRIDE_GATE callback call. I looked thought the GCC source code and it appears free_lang_data happens on

[Bug plugins/86358] Plugin extension not stripped on Mac OS due to use of strip_off_ending()

2024-05-23 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86358 --- Comment #3 from Boris Kolpackov --- Still the case as of GCC 14.

[Bug libstdc++/106852] Implement C++23 P2465R3 Standard Library Modules std and std.compat

2024-05-13 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106852 --- Comment #4 from Boris Kolpackov --- FWIW, this project contains a subset of module interface files that (reportedly) can be used to build a (probably incomplete) `std` module with `libstdc++` using Clang (the README says it requires

[Bug c++/115062] New: [modules] internal compiler error: in simplify_aggr_init_exp

2024-05-13 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Created attachment 58185 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58185=edit Reproducer With the attached module interf

[Bug c++/113400] Internal compiler error: Segmentation fault, regression in 13.2.1 compared to 13.2.0

2024-01-15 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113400 --- Comment #2 from Boris Kolpackov --- Created attachment 57084 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57084=edit Reproducer

[Bug c++/113400] Internal compiler error: Segmentation fault, regression in 13.2.1 compared to 13.2.0

2024-01-15 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113400 --- Comment #1 from Boris Kolpackov --- Created attachment 57083 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57083=edit Reproducer

[Bug c++/113400] New: Internal compiler error: Segmentation fault, regression in 13.2.1 compared to 13.2.0

2024-01-15 Thread boris at kolpackov dot net via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- We are getting this ICE since upgrading to 13.2.1. $ g++ --version g++ (GCC) 13.2.1 20231205 (Red Hat 13.2.1-6

[Bug c++/110417] New: [modules] Segfault compiling iostream as header unit on FreeBSD

2023-06-26 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- [Submitting this on behalf of a build2 user who is still waiting for the bugzilla login[1].] GCC 12,13,14 all have compilation errors

[Bug c++/110213] Bogus (as opposed to false positive) -Wdangling-reference warning

2023-06-11 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110213 --- Comment #1 from Boris Kolpackov --- Created attachment 55304 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55304=edit reproducer

[Bug c++/110213] New: Bogus (as opposed to false positive) -Wdangling-reference warning

2023-06-11 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- I have a call that, AFAICS, doesn't involve any binding of references to temporaries but which nevertheless still produces this warning

[Bug c++/107532] [13 Regression] -Werror=dangling-reference false positives in libcamera-0.0.1

2023-06-11 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug c++/110153] New: [modules] Static module mapper format cannot handle header unit paths with spaces

2023-06-07 Thread boris at kolpackov dot net via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- The static module mapper format (-fmodule-mapper=[?], as described here[1] and implemented in c++tools/resolver.cc

[Bug preprocessor/109534] -fdirectives-only does not work with assembler-with-cpp

2023-04-17 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109534 --- Comment #7 from Boris Kolpackov --- BTW, my understanding of the rationale for the original patch (the one that forces -fno-directives-only) is to paper over some underlying issue with -fdirectives-only when used on .S files, potentially

[Bug preprocessor/109534] -fdirectives-only does not work with assembler-with-cpp

2023-04-17 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109534 --- Comment #6 from Boris Kolpackov --- > The documentation says specifically-fdirectives-only is ignored if > -fpreprocessed is supplied. Hm, that's not how it works, IME. Specifically, just "-fpreprocessed" means the source code is fully

[Bug preprocessor/109534] -fdirectives-only does not work with assembler-with-cpp

2023-04-17 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109534 --- Comment #4 from Boris Kolpackov --- Thanks for the link to the patch submission though I find the "-fdirectives-only option is incompatible with assembly" statement puzzling. > So from what I understand this part is what you want: > > -

[Bug c/109534] New: -fdirectives-only does not work with assembler-with-cpp

2023-04-17 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- I've noticed that -fdirectives-only has no effect when preprocessing assembler-with-cpp files. Instead, one always get a fully preprocessed

[Bug preprocessor/84583] -fdirectives-only does not handle CRLF properly

2023-01-24 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84583 Boris Kolpackov changed: What|Removed |Added Version|10.2.0 |12.2.0 --- Comment #2 from Boris

[Bug c++/107555] Never constructed object destroyed during exception handling

2022-11-08 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107555 --- Comment #6 from Boris Kolpackov --- I was under the impression that only something runnable would be useful, but if all that's need is a preprocessed translation unit, then that's no problem at all. I've also attached the translation unit

[Bug c++/107555] Never constructed object destroyed during exception handling

2022-11-08 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107555 --- Comment #5 from Boris Kolpackov --- Created attachment 53850 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53850=edit Preprocessed translation unit with workaround

[Bug c++/107555] Never constructed object destroyed during exception handling

2022-11-08 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107555 --- Comment #4 from Boris Kolpackov --- Created attachment 53849 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53849=edit Preprocessed translation unit

[Bug c++/107555] Never constructed object destroyed during exception handling

2022-11-08 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107555 --- Comment #2 from Boris Kolpackov --- There is a way to reproduce it but it requires building the actual source code rather than a minimal reproducer. It's not that difficult. Should I provide the instructions?

[Bug c++/107555] New: Never constructed object destroyed during exception handling

2022-11-07 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- I have a fairly complex function (nested loops, try-catch blocks, etc) that on throwing an exceptions tries to destroy a stack object

[Bug c/107448] New: GCC no longer diagnoses missing input file with -MG

2022-10-28 Thread boris at kolpackov dot net via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- With GCC 10 when trying to extract dependency information with -MG we get diagnostics if the input file does not exist: $ g++-10 -M -MG /tmp/no-such-file.cxx g++-10

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

2022-07-18 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64234 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug sanitizer/101978] thread sanitizer false positive when condition variable

2022-07-18 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101978 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug c++/98417] ICE when using C++ modules and -g

2022-04-27 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98417 --- Comment #3 from Boris Kolpackov --- I also no longer see this with GCC 12.0.1 20220421.

[Bug c++/103524] [meta-bug] modules issue

2022-04-25 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 98760, which changed state. Bug 98760 Summary: [modules] ICE in add_module_decl https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98760 What|Removed |Added

[Bug c++/98760] [modules] ICE in add_module_decl

2022-04-25 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98760 Boris Kolpackov changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug c++/105329] New: Bogus restrict warning when assigning 1-char string literal to std::string

2022-04-21 Thread boris at kolpackov dot net via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- When compiling my codebase (build2) with GCC 12 (12.0.1 20220421) the output is littered with new bogus (AFAICS) -Wrestrict

[Bug c++/105327] New: Bogus use-after-free warning new in GCC 12

2022-04-21 Thread boris at kolpackov dot net via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- The following translation unit now (since 12.0) causes a bogus (AFAICS) use-after-free warning: $ cat <use-after-free.cxx #include template class pointer_traits; templ

[Bug libstdc++/86164] std::regex crashes when matching long lines

2021-09-14 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86164 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug c++/84583] -fdirectives-only does not handle CRLF properly

2021-07-29 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84583 Boris Kolpackov changed: What|Removed |Added Component|preprocessor|c++ Version|7.2.0

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

2021-07-07 Thread boris at kolpackov dot net via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Created attachment 51113 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51113=edit reproducer g++ -Wall -Wextra -O3 -std=c++2a -o driver.o -c -fdirectives-only driver

[Bug preprocessor/101298] New: Inclusion of a file without trailing newline breaks -fdirectives-only

2021-07-02 Thread boris at kolpackov dot net via Gcc-bugs
: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- cat <test.cxx #include "test.hxx" #include int main () {} EOF echo -n "// no newline" >tes

[Bug tree-optimization/100115] Bogus -Wmaybe-uninitialized warning with -O3

2021-04-17 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100115 --- Comment #2 from Boris Kolpackov --- > I'm trying to reduce the test case to something manageable but that can take > many hours, even days. Right. On our side we have spent hours, even days trying to suppress this warning (both by

[Bug c++/100115] New: Bogus -Wmaybe-uninitialized warning with -O3

2021-04-16 Thread boris at kolpackov dot net via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Created attachment 50615 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50615=edit Reproducer The attached translation unit produces a bogus "may be used unini

[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-03-30 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377 Boris Kolpackov changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/98760] [modules] ICE in add_module_decl

2021-03-04 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98760 --- Comment #2 from Boris Kolpackov --- This still reproduces as of 11.0.1 20210304 (f3641ac70e) though the location has changed: hello.cxx:18:25: internal compiler error: in lookup_mark, at cp/tree.c:2403 18 | o << format_hello (n) <<

[Bug c++/99051] [modules] ICE/SIGSEGV in get_location_from_adhoc_loc

2021-03-04 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99051 --- Comment #1 from Boris Kolpackov --- As of 11.0.1 20210304 (f3641ac70e) this no longer reproduces for me.

[Bug c++/99380] New: [modules] Unexpected MODULE-EXPORT request when partially preprocessing header unit

2021-03-04 Thread boris at kolpackov dot net via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- A change between 11.0.0 20210217 and 11.0.1 20210304 causes an unexpected MODULE-EXPORT request when partially

[Bug c++/99072] [modules] Compiling header unit with partial preprocessing (-E -fdirectives-only) twice causes CRC mismatch

2021-03-03 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99072 --- Comment #8 from Boris Kolpackov --- Can confirm works for me, thanks!

[Bug c++/98741] [modules] ICE/SIGSEGV reading compiled module cluster

2021-03-03 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98741 --- Comment #4 from Boris Kolpackov --- Can confirm works for me, thanks!

[Bug c++/99377] New: [modules] undefined std::string_view::empty() if referenced in inline exported function

2021-03-03 Thread boris at kolpackov dot net via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- cat <hello.mxx export module hello; import ; export namespace hello { inline bool check (const std::string_v

[Bug c++/98718] [modules] use of partitions causes ICE in write_macro_maps

2021-03-03 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98718 --- Comment #7 from Boris Kolpackov --- Can confirm works for me, thanks!

[Bug c++/99023] [modules] ICE/SIGSEGV in module_state::write_define

2021-03-03 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99023 --- Comment #5 from Boris Kolpackov --- Can confirm works for me, thanks!

[Bug c++/99072] [modules] Compiling header unit with partial preprocessing (-E -fdirectives-only) twice causes CRC mismatch

2021-02-17 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99072 --- Comment #4 from Boris Kolpackov --- You need to use different .ii file names on the first and second header unit builds. Using your original command lines as a reference: # first build of header-unit devvm1702:45>./xg++ [...] -o 99072_a.ii

[Bug c++/99072] [modules] Compiling header unit with partial preprocessing (-E -fdirectives-only) twice causes CRC mismatch

2021-02-16 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99072 --- Comment #2 from Boris Kolpackov --- This has something to do with a different .ii file name the second time we compile the header. Try to make this change to your command lines (notice .so before .ii): # second build of string

[Bug c++/99050] [modules] ICE in cpp_directive_only_process on include translation

2021-02-16 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99050 --- Comment #2 from Boris Kolpackov --- Can confirm now works for me, thanks!

[Bug c++/99072] New: [modules] Compiling header unit with partial preprocessing (-E -fdirectives-only) twice causes CRC mismatch

2021-02-11 Thread boris at kolpackov dot net via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- With partial preprocessing (-E -fdirectives-only) compiling the same header

[Bug c++/99051] New: [modules] ICE/SIGSEGV in get_location_from_adhoc_loc

2021-02-09 Thread boris at kolpackov dot net via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- cat <hello.hxx #pragma once #if 1 import ; #else #include #endif void say_hello (const std::string_view& name); EOF g++ -std=c++2a -fmodules-ts -fmodule-head

[Bug preprocessor/98882] [11 Regression] ICE in in cpp_directive_only_process on empty translation unit

2021-02-09 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98882 --- Comment #8 from Boris Kolpackov --- Done, bug 99050.

[Bug c++/99050] New: [modules] ICE in cpp_directive_only_process on include translation

2021-02-09 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- After the fix in bug 98882 I now get an ICE (that same assert) when partially preprocessing (-E -fdirectives-only) a TU that has

[Bug c++/99000] [modules] declaration std::__copy_move_a2 conflicts with import

2021-02-09 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99000 --- Comment #2 from Boris Kolpackov --- Thanks for pointing this out. Am I correct in interpreting the SUSPENDED status as unlikely to be fixed for GCC 11?

[Bug c++/99023] New: [modules] ICE/SIGSEGV in module_state::write_define

2021-02-09 Thread boris at kolpackov dot net via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Compiling the following two header units causes GCC to catch SIGSEGV in module_state::write_define(): cat <check.hxx #pragma once #include EOF cat <hello.hxx #

[Bug c++/99000] New: [modules] declaration std::__copy_move_a2 conflicts with import

2021-02-08 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- The following header unit import causes the "declaration conflicts with import" error: cat <hello.hxx #pragma once #includ

[Bug preprocessor/98882] [11 Regression] ICE in in cpp_directive_only_process on empty translation unit

2021-02-08 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98882 --- Comment #6 from Boris Kolpackov --- After this change I now get an ICE (that same assert) when partially preprocessing (-E -fdirectives-only) a TU that has an include directive that is translated to an import: cat

[Bug middle-end/98753] -Wfree-nonheap-object on unreachable code with -O0

2021-01-29 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753 --- Comment #14 from Boris Kolpackov --- If this cannot be fixed for 11 (and judging by the age of 54202 I feel it's not likely), perhaps it makes sense not to enable this warning by default? Now that C++ operator delete() is covered by this

[Bug middle-end/98753] -Wfree-nonheap-object on unreachable code with -O0

2021-01-29 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753 --- Comment #13 from Boris Kolpackov --- Created attachment 50081 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50081=edit Reproducer test-simplified.cxx

[Bug middle-end/98753] -Wfree-nonheap-object on unreachable code with -O0

2021-01-29 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753 --- Comment #12 from Boris Kolpackov --- Created attachment 50080 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50080=edit Reproducer test.cxx

[Bug middle-end/98753] -Wfree-nonheap-object on unreachable code with -O0

2021-01-29 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug c++/98882] New: ICE in in cpp_directive_only_process on empty translation unit

2021-01-29 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- I get an internal compiler error when preprocessing with -fdirectives-only an empty translation unit: touch test.cxx g++ -std=c++2a -E

[Bug c++/98761] [modules] use of a module causes SIGSEGV at runtime

2021-01-19 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98761 --- Comment #1 from Boris Kolpackov --- Created attachment 50011 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50011=edit Reproducer

[Bug c++/98761] New: [modules] use of a module causes SIGSEGV at runtime

2021-01-19 Thread boris at kolpackov dot net via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- The attached executable catches SIGSEGV when built with a module: $ g++ -std=c++2a -fmodules-ts -x c++ -c format.mxx $ g++ -std=c++2a -fmodules-ts -x c++ -c driver.cxx

[Bug c++/98760] [modules] ICE in add_module_decl

2021-01-19 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98760 --- Comment #1 from Boris Kolpackov --- Created attachment 50009 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50009=edit Reproducer

[Bug c++/98760] New: [modules] ICE in add_module_decl

2021-01-19 Thread boris at kolpackov dot net via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- The attached set of modules cause an internal compiler error: c++ mxx{format} c++ mxx{check} c++ mxx{hello} c++ cxx{hello} /home/boris/work/build2/tests/modules/gcc2/bugs/x

[Bug c++/98741] New: [modules] ICE/SIGSEGV reading compiled module cluster

2021-01-19 Thread boris at kolpackov dot net via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Created attachment 49998 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49998=edit Build transcript The following simple module causes ICE/SIGSEGV: // hello.

[Bug c++/98718] [modules] use of partitions causes ICE in write_macro_maps

2021-01-18 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98718 --- Comment #1 from Boris Kolpackov --- Perhaps this is the same bug but with a simpler reproducer (it points to the same location): cat

[Bug c++/98720] New: [modules] update __cpp_modules value

2021-01-18 Thread boris at kolpackov dot net via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- It is currently 201810 while it should be 201907.

[Bug c++/98719] [modules] translating importable standard headers causes various ICEs

2021-01-18 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98719 --- Comment #1 from Boris Kolpackov --- Created attachment 49991 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49991=edit build transcript

[Bug c++/98719] New: [modules] translating importable standard headers causes various ICEs

2021-01-18 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Created attachment 49989 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49989=edit build transcript An attempt to ena

[Bug c++/98718] New: [modules] use of partitions causes ICE in write_macro_maps

2021-01-17 Thread boris at kolpackov dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Created attachment 49988 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49988=edit Reproducer The attached set of translation un

[Bug c++/98417] ICE when using C++ modules and -g

2021-01-17 Thread boris at kolpackov dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98417 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug c++/86441] instantiate_class_template() unable to re-execute constexpr function

2020-06-18 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86441 Boris Kolpackov changed: What|Removed |Added Version|8.1.0 |10.1.0 --- Comment #2 from Boris

[Bug c++/86441] instantiate_class_template() unable to re-execute constexpr function

2018-07-09 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86441 --- Comment #1 from Boris Kolpackov --- Created attachment 44366 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44366=edit Test case that shows the problem if compiled with ODB For the record, a test case that triggers the error if

[Bug c++/86441] New: instantiate_class_template() unable to re-execute constexpr function

2018-07-09 Thread boris at kolpackov dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- I have a GCC plugin (ODB) that calls instantiate_class_template() to "post-instantiate" some types that haven't been in

[Bug plugins/86358] New: Plugin extension not stripped on Mac OS due to use of strip_off_ending()

2018-06-28 Thread boris at kolpackov dot net
Priority: P3 Component: plugins Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- As of GCC 8, the default plugin extension on Mac OS is .dylib. However, the plugin machinery uses strip_off_ending() to remove

[Bug preprocessor/84583] New: -fdirectives-only does not handle CRLF properly

2018-02-27 Thread boris at kolpackov dot net
: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: boris at kolpackov dot net Target Milestone: --- Created attachment 43515 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43515=edit reproducing source code The attached archive contains foo.c (as w

[Bug preprocessor/47047] Support for path translation in __FILE__

2018-01-18 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47047 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug libstdc++/77704] Data race on std::ctype

2018-01-16 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77704 --- Comment #5 from Boris Kolpackov --- For anyone interested, here is the workaround we came up with: // A data race happens in the libstdc++ (as of GCC 7.2) implementation of the // ctype::narrow() function (bug #77704). The issue is easily

[Bug libstdc++/77704] Data race on std::ctype

2018-01-16 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77704 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug other/70268] add option -ffile-prefix-map to map one directory name (old) to another (new) in __FILE__, __BASE_FILE__and __builtin_FILE()

2017-12-15 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268 --- Comment #13 from Boris Kolpackov --- No, I was not aware, thanks for the pointer. I skimmed through it and I agree, the environment variable is a bad idea. In fact, if you look at the patch that I've proposed, it has a unified option

[Bug other/70268] add option -ffile-prefix-map to map one directory name (old) to another (new) in __FILE__, __BASE_FILE__and __builtin_FILE()

2017-12-09 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268 --- Comment #11 from Boris Kolpackov --- Third revision of the patch: https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00544.html

[Bug other/70268] add option -ffile-prefix-map to map one directory name (old) to another (new) in __FILE__, __BASE_FILE__and __builtin_FILE()

2017-12-07 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268 --- Comment #10 from Boris Kolpackov --- Second revision of the patch: https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00379.html

[Bug other/70268] add option -ffile-prefix-map to map one directory name (old) to another (new) in __FILE__, __BASE_FILE__and __builtin_FILE()

2017-11-17 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268 --- Comment #9 from Boris Kolpackov --- I've proposed a different implementation (and a bit different options names) here: https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01451.html

[Bug other/79046] g++ -print-file-name=plugin uses full version number in path

2017-01-11 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79046 --- Comment #4 from Boris Kolpackov --- Another question is whether GCC guarantees that its APIs (as can be used by a plugin; e.g., AST) are binary compatible across Y.Z in GCC X.Y.Z?

[Bug libstdc++/66145] [5/6/7 Regression] std::ios_base::failure objects thrown from libstdc++.so use old ABI

2016-07-21 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 --- Comment #26 from Boris Kolpackov --- > If breaking the old ABI was an option we wouldn't be in this situation in the > first place. By throwing the new version you are breaking the ABI. The point I was trying to make is that maybe in this

[Bug libstdc++/66145] [5/6/7 Regression] std::ios_base::failure objects thrown from libstdc++.so use old ABI

2016-07-21 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 --- Comment #24 from Boris Kolpackov --- Some more speculation/crazy ideas about the potential fix: If just throwing the new version and forgetting about the old one is an option, then perhaps we could "de-inherit" old from std::exception and

[Bug libstdc++/66145] [5/6/7 Regression] std::ios_base::failure objects thrown from libstdc++.so use old ABI

2016-07-13 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 --- Comment #21 from Boris Kolpackov --- Speaking of possible fixes, I had this crazy idea, not sure if it is technically possible though: what if libstdc++ throws some custom exception that derives from both version of ios::failure? This way

[Bug libstdc++/66145] [5/6/7 Regression] std::ios_base::failure objects thrown from libstdc++.so use old ABI

2016-07-12 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 --- Comment #17 from Boris Kolpackov --- > if (is >> x >> y >> z) And what should happen in the else part of such statements? if (is >> x >> y >> z) ... else throw something(); Also note that if the 'is >> x' call in the above chain

[Bug target/69880] Linking Windows resource + implicit 'default-manifest.o' creates bad .exe

2016-07-11 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69880 --- Comment #3 from Boris Kolpackov --- Ok, I've added support for embedding custom manifests in build2. The resulting .exe's work as expected: custom manifest is used instead of (or in addition to) the default one. However, with grep I can

[Bug libstdc++/66145] [5/6/7 Regression] std::ios_base::failure objects thrown from libstdc++.so use old ABI

2016-07-09 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 --- Comment #15 from Boris Kolpackov --- > And I still think using exceptions in iostreams is dumb in the first place. I am interested to hear what is your recommendation to do instead, call good() after every IO operation? In fact, I think

[Bug target/69880] Linking Windows resource + implicit 'default-manifest.o' creates bad .exe

2016-07-09 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69880 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug libstdc++/66145] [5/6/7 Regression] std::ios_base::failure objects thrown from libstdc++.so use old ABI

2016-07-08 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 Boris Kolpackov changed: What|Removed |Added CC||boris at kolpackov dot net

[Bug ipa/60871] [4.9 Regression] internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510

2015-02-08 Thread boris at kolpackov dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60871 Boris Kolpackov boris at kolpackov dot net changed: What|Removed |Added CC||boris

[Bug plugins/48425] New: installed plugin headers fail to compile, include non-existent files

2011-04-03 Thread boris at kolpackov dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48425 Summary: installed plugin headers fail to compile, include non-existent files Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: critical Priority: P3

[Bug libstdc++/40974] [4.3/4.4/4.5/4.6 Regression] cannot build gcc-4.4.1: fenv_t has not been declared

2010-09-02 Thread boris at kolpackov dot net
--- Comment #44 from boris at kolpackov dot net 2010-09-02 08:23 --- I just ran into the same issue building (native) mingw32 GCC 4.5.1 using a x86-64 to mingw32 cross compiler. Adding -nostdinc++ to PCHFLAGS fixed this for me as well. I also would like to point out that when building

[Bug c++/25555] New: typeof strips cv-qualification

2005-12-24 Thread boris at kolpackov dot net
at gcc dot gnu dot org ReportedBy: boris at kolpackov dot net GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2

  1   2   >