[Bug libstdc++/108645] Change in behavior, std::accumulate doesn't always work as expected in C++20 builds

2023-02-02 Thread eteran at alum dot rit.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108645 --- Comment #1 from Evan Teran --- To further experiment, i factored out `std::accumulate`: ``` #include #include #include #include void print_v(const char *rem, const std::vector &v) { std::cout << rem; for (const std::str

[Bug libstdc++/108645] New: Change in behavior, std::accumulate doesn't always work as expected in C++20 builds

2023-02-02 Thread eteran at alum dot rit.edu via Gcc-bugs
IRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: eteran at alum dot rit.edu Target Milestone: --- I encountered an interesting change in behavior today involving playing with std::move_iterator types

[Bug c++/93711] ICE: [[no_unique_address] when constructing via template helper

2020-02-12 Thread eteran at alum dot rit.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93711 --- Comment #1 from Evan Teran --- As a follow-up, it appears that the optimization level is a factor. I only get the ICE in my builds which don't pass a -O flag. Here's a live example that can be experimented with: https://godbolt.org/z/zAEcQd

[Bug c++/93711] New: ICE: [[no_unique_address] when constructing via template helper

2020-02-12 Thread eteran at alum dot rit.edu
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eteran at alum dot rit.edu Target Milestone: --- This is a little hard to explain clearly, but I'll do my best. I have a container class that I want to make properly allocator awar

[Bug c++/60512] would be useful if gcc implemented __has_feature similary to clang

2014-03-12 Thread eteran at alum dot rit.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60512 --- Comment #3 from Evan Teran --- @Andrew, I hadn't seen that they were supported, I stand corrected. However that particular feature was for example purposes. Any unsupported feature would do. @Marc, A quick read of that page shows a pretty g

[Bug c++/60512] New: would be useful if gcc implemented __has_feature similary to clang

2014-03-12 Thread eteran at alum dot rit.edu
: enhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eteran at alum dot rit.edu I was recently thinking about how GCC sets __cplusplus to 201103L when -std=c++11 yet doesn't (and may not ever) fully support every single corner

[Bug c++/48119] New: -Wtype-limits should warn when bit masking cannot possibly be true due to type size

2011-03-14 Thread eteran at alum dot rit.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48119 Summary: -Wtype-limits should warn when bit masking cannot possibly be true due to type size Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: enhancement