mponent: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: theubik at mail dot ru
Target Milestone: ---
For example:
// https://godbolt.org/g/Zp5ABy
#include
class X
{
int m_x[5] = { 0, 1, 2, 3, 4 };
public:
int* first() { return &m_x[0]; }
int* last() {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71010
Ubikovich changed:
What|Removed |Added
Resolution|INVALID |FIXED
--- Comment #3 from Ubikovich ---
But
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: theubik at mail dot ru
Target Milestone: ---
// begin main.cpp
struct A
{
virtual void do1() { }
};
struct B
{
A* m_a;
B() : m_a(nullptr) {}
B(A* a) : m_a(a) {}
~B
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81765
--- Comment #1 from Ubikovich ---
How to avoid this bug?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81765
--- Comment #2 from Ubikovich ---
(In reply to Ubikovich from comment #1)
> How to avoid this bug?
Compiling this code with optimization -O1 helps to avoid the problem.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: theubik at mail dot ru
Target Milestone: ---
Created attachment 41231
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41231&action=edit
example
When building with gcc 5.4 t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80469
--- Comment #3 from Ubikovich ---
>> You need to provide the definition of dothis() somewhere.
There is the definition:
// subimpl.cpp
#include "subimpl.h"
void A::dothis() {}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80469
--- Comment #5 from Ubikovich ---
(In reply to Markus Trippelsdorf from comment #4)
> (In reply to Ubikovich from comment #3)
> > >> You need to provide the definition of dothis() somewhere.
> >
> > There is the definition:
> >
> > // subimpl.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80469
Ubikovich changed:
What|Removed |Added
Status|RESOLVED|CLOSED
--- Comment #7 from Ubikovich ---
OK
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: theubik at mail dot ru
Created attachment 34236
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34236&action=edit
gcc -v output
class A
{
public:
A(const char* str) {};
};
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64248
--- Comment #2 from theubik at mail dot ru ---
(In reply to Markus Trippelsdorf from comment #1)
> Probably more outfall from r217241.
it's not a bug?
NCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: theubik at mail dot ru
Target Milestone: ---
// main.cpp
namespace N
{
namespace
{
}
}
int main()
{
using namespace N;
return 0;
}
>>g
++
Assignee: unassigned at gcc dot gnu.org
Reporter: theubik at mail dot ru
Target Milestone: ---
Created attachment 39496
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39496&action=edit
example1.cpp and example2.cpp
> g++ -std=c++11 -fnon-call-exceptions example1.cpp
13 matches
Mail list logo