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
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
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
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
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
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 -
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97234
Botond Ballo changed:
What|Removed |Added
See Also||https://gcc.gnu.org/bugzill
11 matches
Mail list logo