[Bug c++/119685] New: deduction guide sometimes ignored in a function call

2025-04-08 Thread jonathan.poelen at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- The following code fails to compile when the template type to be deduced is used as the first parameter and constructed with parentheses and a variable. I have

[Bug c++/118340] New: fold expression is very slow to compile when used to initialize a variable

2025-01-07 Thread jonathan.poelen at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- The following code works perfectly, but depending on where the unfolding is used, the compilation goes from 60

[Bug c++/117523] New: ICE in dependent_alias_template_spec_p when call a alias template

2024-11-10 Thread jonathan.poelen at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- This code should compile with a too many arguments error or something because variadic parameter passed to an alias that

[Bug c++/113584] New: ICE in unify, at cp/pt.cc:24640 with template specialization on 2 matching template template parameter

2024-01-24 Thread jonathan.poelen at gmail dot com via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- A link that reproduces the problem on godbolt (with trunk which is

[Bug c++/109757] New: Conversion from lvalue to rvalue without error

2023-05-06 Thread jonathan.poelen at gmail dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- GCC 12.2.1 $ cat test.cpp void foo(int&&) {} int main() { using T = int&&; int x = 0; T{x}; // ok -> should be error foo(T{x}); // ok

[Bug c++/106098] New: error message that uses ANSI codes that can cause characters to disappear

2022-06-26 Thread jonathan.poelen at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- Created attachment 53204 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53204&action=edit comparison be

[Bug c++/103105] New: [11 Regression] ICE iterative_hash_template_arg, at cp/pt.c:1790

2021-11-05 Thread jonathan.poelen at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- $ cat test.cpp template struct list {}; template struct wrap_in_list_c {}; template using wrap_in_list_if_convertible

[Bug c++/100718] New: parameter packs not expanded error with a type member which has the same name as a pack

2021-05-21 Thread jonathan.poelen at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- template struct Storage { using Args = int; }; template void delegate(Args&&... args) {

[Bug c++/99393] New: Unoptimized tailcall with char and short as parameter (x86)

2021-03-04 Thread jonathan.poelen at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- #include int foo(uint8_t x); int foo(uint32_t x); struct Y { uint8_t x; }; struct X { uint32_t x; }; int foo(Y x); int foo(X x); e

[Bug c++/99384] New: Unoptimized tailcall with char and short as parameter (x86)

2021-03-04 Thread jonathan.poelen at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- #include int foo(uint8_t x); int foo(uint32_t x); struct Y { uint8_t x; }; struct X { uint32_t x; }; int foo(Y x); int foo(X x

[Bug c++/99281] New: internal compiler error: in assign_temp, at function.c:984

2021-02-25 Thread jonathan.poelen at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- g++ -std=c++17 test.cpp during RTL pass: expand test.cpp: In function ‘int main()’: test.cpp:27:5: internal compiler error: in

[Bug c++/95299] New: sorry, unimplemented: mangling typename_type

2020-05-23 Thread jonathan.poelen at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- Since version 7 to trunk, the following code no longer compiles (https://godbolt.org/z/T9gpw4) template struct func_select { using type = void; }; struct func

[Bug c++/95298] New: sorry, unimplemented: mangling record_type

2020-05-23 Thread jonathan.poelen at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- Since version 7 to trunk, the following code no longer compiles (https://godbolt.org/z/_j5EUA) template struct list{}; template struct _func_select { using f = void

[Bug c++/94610] New: 'invalid use of incomplete type' error which show an alias, but without the real type

2020-04-15 Thread jonathan.poelen at gmail dot com
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- class X; template using something = X; something a; something b = 1; $ g++ test.cpp test.cpp:6

[Bug c++/92327] New: insufficient diagnosis on the incompatibility type of auto template parameter

2019-11-01 Thread jonathan.poelen at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- template class val{}; long const x = 1; val<1> v = val(); // val<1> != val<1> test.cpp:3:12: erro

[Bug c++/92171] New: accept incorrect access of static constexpr member when read from a reference

2019-10-21 Thread jonathan.poelen at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jonathan.poelen at gmail dot com Target Milestone: --- #include struct A { static constexpr std::true_type value {}; }; int main() { A a; A& ref = a; const

[Bug c++/86403] Deduction guides not supported in local classes

2019-10-13 Thread jonathan.poelen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86403 Jonathan Poelen changed: What|Removed |Added CC||jonathan.poelen at gmail dot com