: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stinkingmadgod at gmail dot com
Target Milestone: ---
The following should compile
template
struct S
{
inline static char c;
};
void foo()
{
constexpr auto t1 = &
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stinkingmadgod at gmail dot com
Target Milestone: ---
As per [expr.new]/19 the statement new Type{expr}; should
1. call operator new
2. evaluate expr
3. initialize Type object
The example
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86347
--- Comment #2 from stinkingmadgod at gmail dot com ---
Apologies, not familiar with netiquette here
#include
#include
#include
void* operator new(size_t n)
{
std::cout << "new\n";
return std::malloc(n);
}
struct Y
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stinkingmadgod at gmail dot com
Target Milestone: ---
#include
auto f()
{
std::string s1 = "abcdefg";
std::string s2 = "12345678";
return (s1 + s2).size();
}
#ifdef G
auto g()
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41958
stinkingmadgod at gmail dot com changed:
What|Removed |Added
CC||stinkingmadgod at gmail
++
Assignee: unassigned at gcc dot gnu.org
Reporter: stinkingmadgod at gmail dot com
Target Milestone: ---
template
struct flag
{
friend constexpr int adl_flag(flag);
};
template
struct write
{
friend constexpr int adl_flag(flag) { return N; }
};
template
bstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: stinkingmadgod at gmail dot com
Target Milestone: ---
std::coroutine_handle doesn't inherit from
std::coroutine_handle.
[coroutine.handle.general]
template
struct coroutine_handle : coroutine_handle<>
#inc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97561
--- Comment #3 from stinkingmadgod at gmail dot com ---
Thanks for the link.
I was attempting to create a type-erased task type where the handles in one
case was be passed in as a std::coroutine_handle<>& to avoid using
std::functi
++
Assignee: unassigned at gcc dot gnu.org
Reporter: stinkingmadgod at gmail dot com
Target Milestone: ---
template>
struct S;
This is valid in C++20, but fails due to libstdc++ using a private base
__pair_base, rendering pair non-structural.
[pairs.pairs]
pair is a structural type i
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stinkingmadgod at gmail dot com
Target Milestone: ---
#include
template
struct str
{
char data[N];
consteval str(const char (&arr)[N])
{
std::copy
10 matches
Mail list logo