[Bug c++/113754] New: GCC complains when using a type that depends on lambda

2024-02-04 Thread milasudril at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- I tried to use template using unique_ptr_deleter = std::unique_ptr; As described by https://andreasfertig.blog/2022/08/cpp-insights-lambdas-in-unevaluated

[Bug c++/109287] New: Optimizing sal shr pairs when inlining function

2023-03-26 Thread milasudril at gmail dot com via Gcc-bugs
Keywords: missed-optimization Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- Target: x86-64_linux_gnu I was trying to construct a span type

[Bug c++/107862] New: Returning an std::vector from a lambda fails to be constexpr, while a custom class with allocated storage works

2022-11-24 Thread milasudril at gmail dot com via Gcc-bugs
: 12.2.0 URL: https://godbolt.org/z/dve3Yx8ax Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone

[Bug c++/107123] Size deduction for vector size in template fails

2022-10-03 Thread milasudril at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107123 --- Comment #2 from milasudril at gmail dot com --- > It would be nice to standardized the vector attribute. Good features to have: constexpr std::size (and also std::ssize) template inline constexpr std::is_simd_type_v = ...; namespace

[Bug c++/107123] New: Size deduction for vector size in template fails

2022-10-02 Thread milasudril at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- Host: x86-64_linux_gnu Target: x86-64_linux_gnu I tried to write a generic inner product implementation, accepting vectorized arguments: ```c

[Bug c++/97601] New: ICE when using type determined by std::tuple_element_t<...>, on tuple generated from type id stored in std::array

2020-10-27 Thread milasudril at gmail dot com via Gcc-bugs
ersion: 10.2.1 URL: https://gcc.godbolt.org/z/n13PKr Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail d

[Bug libstdc++/96851] operator< on std::array does not work in constexpr, for sizeof(T) == 1, and N > 1

2020-09-02 Thread milasudril at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96851 --- Comment #4 from milasudril at gmail dot com --- Actually, I did not even try without the c++20 flag: template< class T, std::size_t N > bool operator<( const std::array& lhs, const std::array& rhs );

[Bug libstdc++/96851] operator< on std::array does not work in constexpr, for sizeof(T) == 1, and N > 1

2020-08-30 Thread milasudril at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96851 --- Comment #1 from milasudril at gmail dot com --- Apparently, std::lexicographical_compare works https://gcc.godbolt.org/z/E1ETh1

[Bug libstdc++/96851] New: operator< on std::array does not work in constexpr, for sizeof(T) == 1, and N > 1

2020-08-30 Thread milasudril at gmail dot com
.org/z/vjvYE5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- It appears that `operator<` on `std::array` does

[Bug c++/96419] New: Constant propoagation works on global variable, but not in a function

2020-08-02 Thread milasudril at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- I tried to implement a map-like data structure, with compile-time keys: #include #include #include namespace

[Bug c++/96064] New: Defaulted constexpr spaceship operator triggers internal compiler error after including utility

2020-07-05 Thread milasudril at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- The following code crashes gcc-10.1 #include class WrappedValue { public: constexpr

[Bug c++/92745] New: Initializing array with vec4 results in compile error

2019-12-01 Thread milasudril at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- Target: Any In GCC 8.3 and later the following code fails to compile: #include template using

[Bug c++/91217] Returning std::array from lambda results in an extra copy step on return

2019-07-20 Thread milasudril at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91217 --- Comment #1 from milasudril at gmail dot com --- For reference, here is a MWE: #include #include template struct CreateArray { using value_type = typename TargetArray::value_type; auto operator

[Bug c++/91217] New: Returning std::array from lambda results in an extra copy step on return

2019-07-20 Thread milasudril at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- Target: ARM, x86-64 It appears that for GCC versions later than

[Bug c++/59861] Inconsistent error output format

2016-06-17 Thread milasudril at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59861 milasudril at gmail dot com changed: What|Removed |Added Severity|minor |enhancement

[Bug c++/71566] New: Attribute [[aligned(16)]] on function is ignored

2016-06-17 Thread milasudril at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com Target Milestone: --- g++ does not accept [[aligned(16)]] as attribute on a function. However, the non-standard notation works. Example: #include __attribute__((aligned(16))) int test(int x

[Bug c++/59861] New: Inconsistent error output format

2014-01-17 Thread milasudril at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: milasudril at gmail dot com There are inconsistencies in how gcc reports function names on compile error Note the use and no use of quotation marks: /wand-src/wand.cpp: In member function ‘void Wand::Wand::targetsInstall(const Herbs