Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: igor.chorazewicz at intel dot com
Target Milestone: ---
Following code compiles fine on clang++ and gcc 11 but fails on all older gcc
versions I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96976
--- Comment #2 from Igor Chorazewicz ---
(In reply to Jonathan Wakely from comment #1)
> Fixed on trunk by r11-1571
>
> It's also fixed on the gcc-10 branch by r10-8343
Do you plan to backport it to older gcc versions?
Also, do you by any chan
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: igor.chorazewicz at intel dot com
Target Milestone: ---
The following code, when compiled with -std=c++17 results in "0" being printed.
The correc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92869
--- Comment #2 from Igor Chorazewicz ---
Hm, from what I thought C++11 (not sure about C++14 but probably also) allows
ctors to be explicitly defaulted for aggregates. See C++11 [dcl.init.aggr].
Consider the following code:
#include
#include
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92869
--- Comment #5 from Igor Chorazewicz ---
Ok, but P1816R0 talks about argument deduction - in my example I specify all
template arguments for A, so should this fail?
Moreover, for g++ 10 and g++ 9.2 even the following, non-template code fails
for
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: igor.chorazewicz at intel dot com
Target Milestone: ---
The following code produces "error: array must be initialized with a
brace-enclosed initializer":
st
Assignee: unassigned at gcc dot gnu.org
Reporter: igor.chorazewicz at intel dot com
Target Milestone: ---
Observed in fedora 28 - gcc 8.1.1 20180502 (Red Hat 8.1.1-1).
Consider the following code:
int main(int argc, char *argv[])
{
char dst[10];
strncpy(dst, argv[0
++
Assignee: unassigned at gcc dot gnu.org
Reporter: igor.chorazewicz at intel dot com
Target Milestone: ---
Consider following code, compiled with -Wsign-conversion:
#include
template
struct wrapper {
T t;
operator T()
{
return t;
}
T get