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

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

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

2023-03-12 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70476 Jiang An changed: What|Removed |Added CC||de34 at live dot cn --- Comment #12 from Jian

[Bug libstdc++/109074] SIGABRT signal without using -lpthread at Linux RHEL 7.3

2023-03-12 Thread murugesandins at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109074 --- Comment #13 from Murugesan Nagarajan --- MY LAST COMMENT: I agree. Normally I used to handle bug fix using following ways: 1. Steps to reproduce to issue creating core dump files. There are some other ways which may work(Example: -pthread

[Bug c/101766] Microblaze gcc misses symver but __has_attribute(symver) returns true

2023-03-12 Thread vfazio at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766 --- Comment #7 from Vincent Fazio --- Created attachment 54646 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54646&action=edit partial patch for microblaze migration to elfos.h

[Bug c/101766] Microblaze gcc misses symver but __has_attribute(symver) returns true

2023-03-12 Thread vfazio at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766 --- Comment #6 from Vincent Fazio --- Created attachment 54645 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54645&action=edit add macro to microblaze.h

[Bug c/101766] Microblaze gcc misses symver but __has_attribute(symver) returns true

2023-03-12 Thread vfazio at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101766 Vincent Fazio changed: What|Removed |Added CC||vfazio at gmail dot com --- Comment #5

[Bug libstdc++/108886] Add basic_string throw logic_error when assigned a nullptr

2023-03-12 Thread jg at jguk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108886 --- Comment #4 from Jonny Grant --- (In reply to Jonathan Wakely from comment #3) > (In reply to Jonny Grant from comment #2) > > I was taught to validate parameters at University. Personally I always > > follow defensive programming approaches

[Bug middle-end/109031] csmith: possible bad code with -O2 -fno-strict-aliasing since r13-254-gdd3c7873a61019e9

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109031 --- Comment #30 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:eb1d8df792f990574cbb695b55c92ee2684fc96b commit r13-6621-geb1d8df792f990574cbb695b55c92ee2684fc96b Author: Roger Sayle Date: Sun

[Bug libstdc++/109074] SIGABRT signal without using -lpthread at Linux RHEL 7.3

2023-03-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109074 --- Comment #12 from Jonathan Wakely --- (In reply to Murugesan Nagarajan from comment #10) > Hence sigabrt signal needs to be handler at libc.so.6 Library Stop trying to "handle" the error and FIX IT. The error is that you didn't link to libpt

[Bug analyzer/109106] GCC Static Analyzer doesn't model printf

2023-03-12 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109106 --- Comment #3 from Andreas Schwab --- When an output error occurs it returns < 0. Only printf("") or printf("%s", "") can return 0.

[Bug analyzer/109106] GCC Static Analyzer doesn't model printf

2023-03-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109106 --- Comment #2 from Andrew Pinski --- Why do you think printf will not return zero in some cases? Especially if stdout is write fails.

[Bug libfortran/109099] Assignment in NAMELIST input does not fill in row-column order

2023-03-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109099 anlauf at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P5 Severity|normal

[Bug target/108583] [13 Regression] wrong code with vector division by uint16 at -O2

2023-03-12 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108583 Tamar Christina changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/108583] [13 Regression] wrong code with vector division by uint16 at -O2

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108583 --- Comment #30 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:f23dc726875c26f2c38dfded453aa9beba0b9be9 commit r13-6620-gf23dc726875c26f2c38dfded453aa9beba0b9be9 Author: Tamar Christina Date

[Bug target/108583] [13 Regression] wrong code with vector division by uint16 at -O2

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108583 --- Comment #28 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:0b3c630fcc44063a61f6131af48a4171b1de2b37 commit r13-6618-g0b3c630fcc44063a61f6131af48a4171b1de2b37 Author: Tamar Christina Date

[Bug target/108583] [13 Regression] wrong code with vector division by uint16 at -O2

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108583 --- Comment #29 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:81fd62d1378b7ddc1fa0967cbddcdcdcdd2d8d8c commit r13-6619-g81fd62d1378b7ddc1fa0967cbddcdcdcdd2d8d8c Author: Tamar Christina Date

[Bug target/108583] [13 Regression] wrong code with vector division by uint16 at -O2

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108583 --- Comment #26 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:2246d576f922bae3629da0fe1dbfcc6ff06769ad commit r13-6616-g2246d576f922bae3629da0fe1dbfcc6ff06769ad Author: Tamar Christina Date

[Bug target/108583] [13 Regression] wrong code with vector division by uint16 at -O2

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108583 --- Comment #27 from CVS Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:03c6ba86757f0684c5419c90651106900f5ecb5a commit r13-6617-g03c6ba86757f0684c5419c90651106900f5ecb5a Author: Tamar Christina Date

[Bug fortran/107426] [12/13 Regression] ICE in gfc_compare_derived_types, at fortran/interface.cc:636

2023-03-12 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107426 Mikael Morin changed: What|Removed |Added Attachment #54643|0 |1 is obsolete|

[Bug fortran/107426] [12/13 Regression] ICE in gfc_compare_derived_types, at fortran/interface.cc:636

2023-03-12 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107426 Mikael Morin changed: What|Removed |Added Attachment #54641|0 |1 is obsolete|

[Bug fortran/107426] [12/13 Regression] ICE in gfc_compare_derived_types, at fortran/interface.cc:636

2023-03-12 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107426 --- Comment #4 from Mikael Morin --- Created attachment 54642 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54642&action=edit Dra (In reply to Mikael Morin from comment #3) > Created attachment 54641 [details] > Draft patch > > I couldn

[Bug d/109108] New: d: Undefined reference to lambda in private enum

2023-03-12 Thread ibuclaw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109108 Bug ID: 109108 Summary: d: Undefined reference to lambda in private enum Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug analyzer/109106] GCC Static Analyzer doesn't model printf

2023-03-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109106 --- Comment #1 from Andrew Pinski --- printf can still return 0.

[Bug sanitizer/109107] New: UBsan since GCC-8 misses an integer-overflow

2023-03-12 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109107 Bug ID: 109107 Summary: UBsan since GCC-8 misses an integer-overflow Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: san

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

2023-03-12 Thread flast at flast dot jp via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 --- Comment #21 from Kohei Takahashi --- (In reply to Marek Polacek from comment #18) > (In reply to Barnabás Pőcze from comment #17) > > The simple test case with std::span still triggers the warning: > > https://gcc.godbolt.org/z/43cKxdqr3. I

[Bug modula2/109089] implementation of boolean should be C++/C bool rather than int

2023-03-12 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109089 Gaius Mulley changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug modula2/109089] implementation of boolean should be C++/C bool rather than int

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109089 --- Comment #2 from CVS Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:431c06691dcbb84c7d999d91202537442e6a60f0 commit r13-6614-g431c06691dcbb84c7d999d91202537442e6a60f0 Author: Gaius Mulley Date: Sun

[Bug analyzer/109106] New: GCC Static Analyzer doesn't model printf

2023-03-12 Thread geoffreydgr at icloud dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109106 Bug ID: 109106 Summary: GCC Static Analyzer doesn't model printf Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyze

[Bug fortran/107426] [12/13 Regression] ICE in gfc_compare_derived_types, at fortran/interface.cc:636

2023-03-12 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107426 Mikael Morin changed: What|Removed |Added CC||mikael at gcc dot gnu.org --- Comment #3

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

2023-03-12 Thread eike--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 --- Comment #20 from Rolf Eike Beer --- I'm running this rev: g++-13 (Gentoo 13.0.1. p, commit 27495bc8fe028d4a68e97ad12b52231772e48dcf) 13.0.1 20230308 (experimental) And I still get a warning for this testcase: // $ cat ref.cpp #include

[Bug fortran/108923] memory leak of get_intrinsic_dummy_arg result

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108923 --- Comment #9 from CVS Commits --- The releases/gcc-12 branch has been updated by Mikael Morin : https://gcc.gnu.org/g:7b0c9631ccb492c4457a91dbb91e7a5bcd0bc2a6 commit r12-9244-g7b0c9631ccb492c4457a91dbb91e7a5bcd0bc2a6 Author: Mikael Morin Da

[Bug fortran/108923] memory leak of get_intrinsic_dummy_arg result

2023-03-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108923 --- Comment #8 from CVS Commits --- The releases/gcc-12 branch has been updated by Mikael Morin : https://gcc.gnu.org/g:cd65c727fd6d5a252964dbeb3a735daa0a521a89 commit r12-9243-gcd65c727fd6d5a252964dbeb3a735daa0a521a89 Author: Mikael Morin Da