https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96543
--- Comment #2 from Vlad Petric ---
Got it, should I refile/change this bug?
: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vlad at petric dot cc
Target Milestone: ---
static unsigned c = 0;
template
struct A {
static void test() {
if constexpr (c) ++ *c;
}
};
int main() {
A<>::test();
A::test();
}
The error is:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551
--- Comment #10 from Vlad Petric ---
Could someone boost its priority? Given that gcc segfaults with valid code (see
newest example/attachment), I believe it's worth a P1.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551
--- Comment #9 from Vlad Petric ---
Created attachment 40235
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40235=edit
Compliant code that segfaults the compiler
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551
--- Comment #8 from Vlad Petric ---
(In reply to Vlad Petric from comment #7)
> Ok, so the example that I started this bug with is not standard compliant
> because it initialized different elements in a union with the constexpr
> constructor.
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551
--- Comment #7 from Vlad Petric ---
Ok, so the example that I started this bug with is not standard compliant
because it initialized different elements in a union with the constexpr
constructor.
The following does just one. I believe that the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551
--- Comment #2 from Vlad Petric ---
Created attachment 40167
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40167=edit
Code with constexpr that fails
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551
--- Comment #1 from Vlad Petric ---
Created attachment 40166
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40166=edit
code that fails as attachment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=1
--- Comment #3 from Vlad Petric ---
Sorry - accidentally added test case attachment to this bug. The bug I reported
is likely related https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78551
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=1
--- Comment #2 from Vlad Petric ---
Created attachment 40165
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40165=edit
code that fails
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vlad at petric dot cc
Target Milestone: ---
The following code ICEs:
#include
#include
struct A {
union {
uint64_t s;
char buff[8];
};
constexpr A(const char* str) : s(0
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vlad at petric dot cc
Target Milestone: ---
Created attachment 36010
-- https://gcc.gnu.org/bugzilla/attachment.cgi?id=36010action=edit
straightforward file
: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vlad at petric dot cc
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla
--- Comment #1 from vlad at petric dot cc 2007-05-02 19:36 ---
Created an attachment (id=13498)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13498action=view)
Isolated code which illustrates the ivopts issue
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31792
Version: 3.3.5
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vlad at petric dot cc
CC: gcc-bugs at gcc dot gnu dot org,vlad at petric dot cc
GCC build
--- Additional Comments From vlad at petric dot cc 2005-01-29 06:34 ---
Created an attachment (id=8097)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8097action=view)
preprocessed sourcecode
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19685
16 matches
Mail list logo