[Bug c++/96976] g++ reports "call of overloaded '...' is ambiguous" when universal reference is used

2020-09-08 Thread igor.chorazewicz at intel dot com
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

[Bug c++/96976] New: g++ reports "call of overloaded '...' is ambiguous" when universal reference is used

2020-09-08 Thread igor.chorazewicz at intel dot com
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

[Bug c++/92869] [10 Regression] C++17 wrongly reports aggregate type as not-aggregate (when explicitly defaulted ctors are added)

2019-12-10 Thread igor.chorazewicz at intel dot com
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

[Bug c++/92869] C++17 wrongly reports aggregate type as not-aggregate (when explicitly defaulted ctors are added)

2019-12-10 Thread igor.chorazewicz at intel dot com
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

[Bug c++/92869] New: g++ wrongly reports aggregate type as not-aggregate (when explicitly defaulted ctors are added)

2019-12-09 Thread igor.chorazewicz at intel dot com
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

[Bug c++/88661] New: No brace ellision performed when aggregate is initialized inside of struct

2019-01-02 Thread igor.chorazewicz at intel dot com
: 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

[Bug c++/88365] New: -Wsign-conversion ignores implicit conversion

2018-12-05 Thread igor.chorazewicz at intel dot com
++ 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

[Bug c/85902] New: -Wstringop-truncation false-positive

2018-05-24 Thread igor.chorazewicz at intel dot com
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