Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: v at vsamko dot com
Target Milestone: ---
This fails to compile with "error: non-constant condition for static assertion
static_assert(std::char_traits::length
ty: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: v at vsamko dot com
Target Milestone: ---
This valid code:
template
class A {
static A* INSTANCE;
void foobar();
void moo() {}
};
template
A* A::INSTANCE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89596
Valentine changed:
What|Removed |Added
CC||v at vsamko dot com
--- Comment #3 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83534
Valentine changed:
What|Removed |Added
CC||v at vsamko dot com
--- Comment #1 from
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: v at vsamko dot com
Target Milestone: ---
void foo1() noexcept(true) {}
decltype(foo1) stub_foo1;
void stub_foo1() noexcept(true) {}
This compiles fine with clang 8 and gcc 8.3, but
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: v at vsamko dot com
Target Milestone: ---
With -O0 -std=c++17 this results in ICE
#include
#include
volatile size_t SIZE = 100;
template
void foo(Ts&... out) {
std::tuple d
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90732
--- Comment #1 from Valentine ---
Simpler example without any include's:
===
volatile int SIZE = 100;
template
void bar(T t, U... u) {
t(u...);
}
template
void foo(Ts&... out) {
char buf[SIZE];
bar([&buf, &out...](auto&... x) { (x,
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: v at vsamko dot com
Target Milestone: ---
We are not "using" `buf` there. We are passing it by reference, which is a
valid code and it shouldn't raise any warnin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90740
--- Comment #3 from Valentine ---
Yep, it uses GCC extension.
Interesting observation that it complains about the size of buffer, that looks
to be correct as if I change to
===
char buf[SIZE];
char* pbuf = buf;
bar([pbuf, &out...](au
ty: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: v at vsamko dot com
Target Milestone: ---
This works fine with gcc 7 and ealier. Gcc 8 and trunk have this problem.
Compiling with "-flto"
===
struct Main { Main(char* x);
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81847
--- Comment #2 from Valentine ---
(In reply to Andrew Pinski from comment #1)
> Try -flto-partition=one which might allow this to be reduced further.
Thanks, just tried -flto-partition=one, still the same ICE. Other
-flto-partition options didn'
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: v at vsamko dot com
Target Milestone: ---
Code below prints
1 2 13 14
BUG DETECTED
when compiled with "-Wfatal-errors -O3 bug2.cpp -o bug2 --save-temps -Wall&
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81847
--- Comment #4 from Valentine ---
Created attachment 42002
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42002&action=edit
code to reproduce ICE
I reduced (thanks to suggestions above and CReduce) this to the attached
example.
g++ -w -fl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81884
--- Comment #7 from Valentine ---
Many thanks for this !
Are there any plans to merge this into 7.2.0 and into any future 7.x releases?
If not, is it safe for me just to apply this patch to 7.2 locally and rebuild?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81042
Valentine changed:
What|Removed |Added
CC||v at vsamko dot com
--- Comment #3 from
15 matches
Mail list logo