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
: 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
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
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
: 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
: 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
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
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)
{
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
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
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
++
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
++
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
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
: 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
: 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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86403
Jonathan Poelen changed:
What|Removed |Added
CC||jonathan.poelen at gmail dot
com
17 matches
Mail list logo