[Bug c++/65869] New: Incorrect overload resolution in function return statement

2015-04-23 Thread botond at mozilla dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: botond at mozilla dot com GCC accepts the following code: struct Base {}; struct Derived : Base { Derived(); explicit Derived(const Derived&); explicit Derived(Der

[Bug c++/65869] Incorrect overload resolution in function return statement

2015-04-23 Thread botond at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65869 --- Comment #2 from Botond Ballo --- (In reply to Marc Glisse from comment #1) > http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1579 I don't think the resolution of this issue affects the validity of my code example, i.e. it remain

[Bug c++/65869] Incorrect overload resolution in function return statement

2015-04-24 Thread botond at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65869 --- Comment #4 from Botond Ballo --- > - The second overload resolution fails, because the only > candidate (again, the explicit constructors are not > candidates) has an rvalue reference parameter, which > cannot bind to the lvalue

[Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code

2014-07-29 Thread botond at mozilla dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: botond at mozilla dot com Created attachment 33208 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33208&action=edit preprocessed source, zipped I ran

[Bug c++/61959] "internal compiler error: Segmentation fault" when building Mozilla code

2014-07-29 Thread botond at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959 --- Comment #2 from Botond Ballo --- (In reply to Andrew Pinski from comment #1) > >See for instructions. Here is the output of g++ -v: Using built-in specs. COLLECT_GCC=/usr/bin/g++-4.7.real COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4

[Bug c++/61959] "internal compiler error: Segmentation fault" when building Mozilla code

2014-07-29 Thread botond at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959 Botond Ballo changed: What|Removed |Added Version|4.7.3 |4.9.0 --- Comment #3 from Botond Ballo -

[Bug c++/61959] "internal compiler error: in tree_to_uhwi, at tree.h:3657" when building Mozilla code

2014-07-29 Thread botond at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959 --- Comment #4 from Botond Ballo --- Reduced code that triggers the ICE: template struct BasePoint { Coord x, y; constexpr BasePoint(Coord aX, Coord aY) : x(aX), y(aY) {} }; template struct BaseCoord { T value; explicit constexpr B

[Bug c++/97234] New: Constexpr class-scope array initializer referencing previous elements

2020-09-28 Thread botond at mozilla dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: botond at mozilla dot com Target Milestone: --- The following code: struct S { static constexpr int rolling_sum[4]{ 0, rolling_sum[0] + 1, rolling_sum

[Bug c++/100644] New: [11 regression] Deleted move constructor prevents templated constructor from being used

2021-05-17 Thread botond at mozilla dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: botond at mozilla dot com Target Milestone: --- GCC 11 gives an error for the following code which GCC 10 and Clang accept: struct NonMovable { NonMovable

[Bug c++/97234] Constexpr class-scope array initializer referencing previous elements

2021-08-16 Thread botond at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97234 --- Comment #2 from Botond Ballo --- I believe it's valid because the point of declaration of a variable is just before its initializer (https://timsong-cpp.github.io/cppwp/n4861/basic.scope.pdecl#1), and thus the variable should be in scope in i

[Bug c++/97234] Constexpr class-scope array initializer referencing previous elements

2021-08-17 Thread botond at mozilla dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97234 Botond Ballo changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill