[Bug c++/108262] New: Spurious [Wignored-attributes] on vector intrinsic types, even in constexpr contexts

2023-01-01 Thread ian at geometrian dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- We've been running into a peculiar issue where [Wignored-attributes] is triggering on apparently benign uses

[Bug c++/107864] New: Internal Compiler Error (Large Project, C++20)

2022-11-24 Thread ian at geometrian dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- Created attachment 53962 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53962=edit ".zip" file containing "main.cpp", the repro Using g++ buil

[Bug tree-optimization/58926] -Wstrict-overflow unwanted warning comparing variables initialized from one of static duration

2021-03-03 Thread ian at geometrian dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58926 Ian Mallett changed: What|Removed |Added CC||ian at geometrian dot com --- Comment #2

[Bug c++/87129] New: -Wsign-conversion Erroneously Triggered When Dereferencing Pointer From Implicit User Conversion

2018-08-28 Thread ian at geometrian dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- When dereferencing a pointer created from calling an implicit user conversion, g++ erroneously produces

[Bug preprocessor/47857] Pragma once warning when compiling PCH

2017-05-12 Thread ian at geometrian dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47857 Ian Mallett changed: What|Removed |Added CC||ian at geometrian dot com --- Comment #7

[Bug c++/80157] New: Spurious "Wsign-conversion" warning with const, size_t, array.

2017-03-22 Thread ian at geometrian dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- Minimal example (compile GCC >= ~6.1 with -Wsign-conversion): #include bool f(size_t const xy[2], int z) {

[Bug c++/77340] New: Invalid (Stack Smashing) Code Generated In Simple Cases With Debug-Mode Vectors

2016-08-23 Thread ian at geometrian dot com
: wrong-code Severity: major Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- Simple test case: //func.hpp #define _GLIBCXX_DEBUG #include std::vector

[Bug c++/77314] New: Allows C++11 POD types in anonymous structures.

2016-08-21 Thread ian at geometrian dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- Consider the following in >= C++11: #include struct MyType { int val; MyType(void) = default; MyType(int v) : val(v) {} }; static_assert(

[Bug c++/70881] -Wunused-parameter incorrect for macro case

2016-04-29 Thread ian at geometrian dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70881 Ian Mallett changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/70881] New: -Wunused-parameter incorrect for macro case

2016-04-29 Thread ian at geometrian dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- Created attachment 38380 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38380=edit Simple example. In the attached example, adapted from real-world image-processing c

[Bug c++/70318] `std::sqrt(int)` Produces -Wfloat-conversion Warning, Erroneous After C++11.

2016-03-20 Thread ian at geometrian dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70318 --- Comment #2 from Ian Mallett --- "Did you interpret the standard as providing int sqrt(int);" Yes; I did. You're right; what is supposed to exist is just "double sqrt(int);". Sorry for the noise.

[Bug c++/70318] New: `std::sqrt(int)` Produces -Wfloat-conversion Warning, Erroneous After C++11.

2016-03-19 Thread ian at geometrian dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- Created attachment 38032 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38032=edit Sample given in text, as a f

[Bug c++/63391] New: Erroneous -Wsign-conversion with offsetof

2014-09-27 Thread ian at geometrian dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com //Bug report: //by Ian Mallett //Compile with g++ name.cpp -std=c++11 -Wsign-conversion #include cstdint #include cstddef struct Foo { char data; }; int main(int /*argc*/, char* /*argv

[Bug c++/57793] New: Cross-Compiler Templates and Bitfields Ask to Report Problem

2013-07-02 Thread ian at geometrian dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Created attachment 30432 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30432action=edit Self-contained example of problem Compile attached example: i586-elf-gcc