--- Comment #11 from jason at gcc dot gnu dot org 2010-02-19 21:41 ---
Fixed.
--
jason at gcc dot gnu dot org changed:
What|Removed |Added
Status|ASSIGNED
--- Comment #7 from likeuclinux at yahoo dot ca 2009-11-05 21:16 ---
Please, this is definitely bug from GCC, for same code give me error in Visual
Studio 2008 but not in GCC:
#include iostream
#include stdio.h
#include stdlib.h
#include memory
using namespace std;
class A{
public:
--- Comment #8 from paolo dot carlini at oracle dot com 2009-11-05 22:11
---
Jason, this isn't a regression, but a very old issue, any chance you can have a
look? As far as I can see we are still compiling the snipped in Comment #2 and
the EDG-based compilers are still rejecting it...
--
jason at gcc dot gnu dot org changed:
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org
--- Comment #9 from jason at gcc dot gnu dot org 2009-11-06 04:32 ---
Subject: Bug 34180
Author: jason
Date: Fri Nov 6 04:32:13 2009
New Revision: 153960
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=153960
Log:
PR c++/34180
* method.c
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-11-25 02:59 ---
With types checking on the trunk, I actually get an ICE:
t.cc:8: error: type mismatch in address expression
struct G *
const struct G *
D.2051 = D.2032-g
t.cc:8: internal compiler error: verify_gimple failed
--- Comment #1 from jeidsath at gmail dot com 2007-11-21 22:45 ---
I apologize, a line was incorrectly cut from the copy and paste, here is the
full code that should not compile, but does:
#include memory
int main()
{
class A
{
const std::auto_ptrint a;
--- Comment #2 from pcarlini at suse dot de 2007-11-21 23:21 ---
I think this is the issue, nothing specific to std::auto_ptr:
struct G { G() { } G(G) { } };
int main()
{
class A
{
const G g;
};
A a;
A b = a;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34180
--- Comment #3 from jeidsath at gmail dot com 2007-11-21 23:52 ---
(In reply to comment #2)
I think this is the issue, nothing specific to std::auto_ptr:
struct G { G() { } G(G) { } };
int main()
{
class A
{
const G g;
};
A a;
A b = a;
}
No, copying of
--- Comment #4 from pcarlini at suse dot de 2007-11-22 00:10 ---
(In reply to comment #3)
(In reply to comment #2)
I think this is the issue, nothing specific to std::auto_ptr:
struct G { G() { } G(G) { } };
int main()
{
class A
{
const G g;
};
A a;
--- Comment #5 from jeidsath at gmail dot com 2007-11-22 00:24 ---
Of course, and of course. But that has nothing to do with my reduced snippet,
which is equivalent to our standard-conforming implementation of
std::auto_ptr,
as far as I can see, and, does compile, whereas it should
11 matches
Mail list logo