* [Bug c++/13086] [3.3/3.4 regression] no error when calling delete on incomplete type, and no location
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
@ 2003-11-17 17:44 ` bangerth at dealii dot org
2003-11-17 17:51 ` falk dot hueffner at student dot uni-tuebingen dot de
` (23 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: bangerth at dealii dot org @ 2003-11-17 17:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-11-17 17:44 -------
Confirmed. There are at least two regressions here: up to
2.95 we issued the line of the code that tried to call operator delete,
and we actually issued a hard error instead of a warning (I think
I recall that a hard error is required).
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2003-11-17 17:44:15
date| |
Summary|warning: `e' has incomplete |[3.3/3.4 regression] no
|type without location |error when calling delete on
| |incomplete type, and no
| |location
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] no error when calling delete on incomplete type, and no location
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
2003-11-17 17:44 ` [Bug c++/13086] [3.3/3.4 regression] no error when calling delete on incomplete type, and no location bangerth at dealii dot org
@ 2003-11-17 17:51 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-11-17 20:47 ` bangerth at dealii dot org
` (22 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: falk dot hueffner at student dot uni-tuebingen dot de @ 2003-11-17 17:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de 2003-11-17 17:51 -------
Subject: Re: [3.3/3.4 regression] no error when calling delete on incomplete type, and no location
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> Confirmed. There are at least two regressions here: up to
> 2.95 we issued the line of the code that tried to call operator delete,
> and we actually issued a hard error instead of a warning (I think
> I recall that a hard error is required).
I don't think it is. The standard says:
"If the object being deleted has incomplete class type at the point of
deletion and the complete class has a non-trivial destructor or a
deallocation function, the behavior is undefined."
which would be pointless if this was a hard error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] no error when calling delete on incomplete type, and no location
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
2003-11-17 17:44 ` [Bug c++/13086] [3.3/3.4 regression] no error when calling delete on incomplete type, and no location bangerth at dealii dot org
2003-11-17 17:51 ` falk dot hueffner at student dot uni-tuebingen dot de
@ 2003-11-17 20:47 ` bangerth at dealii dot org
2003-11-17 21:44 ` [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type pinskia at gcc dot gnu dot org
` (21 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: bangerth at dealii dot org @ 2003-11-17 20:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-11-17 20:46 -------
I stand corrected (although I must admit that I don't understand why
the standard would choose to make something undefined behavior that
is so easy to detect; at least we warn about this).
The problem with the unspecified source line remains, though.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-11-17 20:47 ` bangerth at dealii dot org
@ 2003-11-17 21:44 ` pinskia at gcc dot gnu dot org
2003-11-19 4:36 ` gdr at integrable-solutions dot net
` (20 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-17 21:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-17 21:44 -------
Changing summary based on analysis.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.3/3.4 regression] no |[3.3/3.4 regression] the
|error when calling delete on|location of the warning
|incomplete type, and no |message is wrong when
|location |calling delete on incomplete
| |type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-11-17 21:44 ` [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type pinskia at gcc dot gnu dot org
@ 2003-11-19 4:36 ` gdr at integrable-solutions dot net
2003-11-19 9:56 ` falk at debian dot org
` (19 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-11-19 4:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2003-11-19 04:36 -------
Subject: Re: [3.3/3.4 regression] no error when calling delete on incomplete type, and no location
"falk dot hueffner at student dot uni-tuebingen dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de 2003-11-17 17:51 -------
| Subject: Re: [3.3/3.4 regression] no error when calling delete on incomplete type, and no location
|
| "bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
|
| > Confirmed. There are at least two regressions here: up to
| > 2.95 we issued the line of the code that tried to call operator delete,
| > and we actually issued a hard error instead of a warning (I think
| > I recall that a hard error is required).
|
| I don't think it is. The standard says:
|
| "If the object being deleted has incomplete class type at the point of
| deletion and the complete class has a non-trivial destructor or a
| deallocation function, the behavior is undefined."
|
| which would be pointless if this was a hard error.
But GCC can decide to define that behaviour to be hard error.
I believe I discussed -- a while ago -- this specific issue with Jason, Alexandre Oliva.
I argued that the compiler should issue a hard error. I was in minority :-(
I still think, this should be a hard error.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-11-19 4:36 ` gdr at integrable-solutions dot net
@ 2003-11-19 9:56 ` falk at debian dot org
2003-11-20 3:16 ` gdr at integrable-solutions dot net
` (18 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: falk at debian dot org @ 2003-11-19 9:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From falk at debian dot org 2003-11-19 09:56 -------
(In reply to comment #6)
> "falk dot hueffner at student dot uni-tuebingen dot de"
<gcc-bugzilla@gcc.gnu.org> writes:
>
> | "If the object being deleted has incomplete class type at the point of
> | deletion and the complete class has a non-trivial destructor or a
> | deallocation function, the behavior is undefined."
> |
> | which would be pointless if this was a hard error.
>
> But GCC can decide to define that behaviour to be hard error.
Only if both conditions are given. The object here has incomplete class,
but it does not have a destructor (well, not shown above, but let's assume.).
> I believe I discussed -- a while ago -- this specific issue with Jason,
Alexandre Oliva.
> I argued that the compiler should issue a hard error. I was in minority :-(
>
> I still think, this should be a hard error.
I wouldn't mind at all if it was, because this is a completely useless
feature which could potentially do some damage, but I think it would not be
standard compliant.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-11-19 9:56 ` falk at debian dot org
@ 2003-11-20 3:16 ` gdr at integrable-solutions dot net
2003-12-24 22:14 ` gdr at gcc dot gnu dot org
` (17 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-11-20 3:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2003-11-20 03:16 -------
Subject: Re: [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
"falk at debian dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| (In reply to comment #6)
| > "falk dot hueffner at student dot uni-tuebingen dot de"
| <gcc-bugzilla@gcc.gnu.org> writes:
| >
| > | "If the object being deleted has incomplete class type at the point of
| > | deletion and the complete class has a non-trivial destructor or a
| > | deallocation function, the behavior is undefined."
| > |
| > | which would be pointless if this was a hard error.
| >
| > But GCC can decide to define that behaviour to be hard error.
|
| Only if both conditions are given. The object here has incomplete class,
| but it does not have a destructor (well, not shown above, but let's assume.).
Any object type has a destructor. The fact that the type is incomplete at
the point of deleting does not morally rule out that fact.
Deleting an object with an incomplete type simply does not make sense.
| > I believe I discussed -- a while ago -- this specific issue with Jason,
| Alexandre Oliva.
| > I argued that the compiler should issue a hard error. I was in minority :-(
| >
| > I still think, this should be a hard error.
|
| I wouldn't mind at all if it was, because this is a completely useless
| feature which could potentially do some damage, but I think it would not be
| standard compliant.
Certainly, it is standard conformant. The issue here is purely a
Quality of Implementation issue.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2003-11-20 3:16 ` gdr at integrable-solutions dot net
@ 2003-12-24 22:14 ` gdr at gcc dot gnu dot org
2003-12-29 18:56 ` pinskia at gcc dot gnu dot org
` (16 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: gdr at gcc dot gnu dot org @ 2003-12-24 22:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2003-12-24 22:07 -------
Will investigate.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2003-12-24 22:14 ` gdr at gcc dot gnu dot org
@ 2003-12-29 18:56 ` pinskia at gcc dot gnu dot org
2004-01-11 1:50 ` pinskia at gcc dot gnu dot org
` (15 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-29 18:56 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (8 preceding siblings ...)
2003-12-29 18:56 ` pinskia at gcc dot gnu dot org
@ 2004-01-11 1:50 ` pinskia at gcc dot gnu dot org
2004-01-12 23:39 ` steven at gcc dot gnu dot org
` (14 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-11 1:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-11 01:50 -------
Since this only about a small problem with the error message, I am moving this to 3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.3 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-01-11 1:50 ` pinskia at gcc dot gnu dot org
@ 2004-01-12 23:39 ` steven at gcc dot gnu dot org
2004-01-15 3:00 ` giovannibajo at libero dot it
` (13 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-01-12 23:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2004-01-12 23:39 -------
Move back the target for all regressions from 3.4.1 to 3.4.0, as required by
our bug management policy.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.1 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-01-12 23:39 ` steven at gcc dot gnu dot org
@ 2004-01-15 3:00 ` giovannibajo at libero dot it
2004-01-15 12:37 ` giovannibajo at libero dot it
` (12 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-15 3:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-15 03:00 -------
I'm testing a patch for this.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |giovannibajo at gcc dot gnu
|dot org |dot org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-01-15 3:00 ` giovannibajo at libero dot it
@ 2004-01-15 12:37 ` giovannibajo at libero dot it
2004-02-04 18:42 ` [Bug c++/13086] [3.3/3.4/3.5 " mmitchel at gcc dot gnu dot org
` (11 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-15 12:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-15 12:37 -------
Patch submitted, waiting for review:
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01457.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4/3.5 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (12 preceding siblings ...)
2004-01-15 12:37 ` giovannibajo at libero dot it
@ 2004-02-04 18:42 ` mmitchel at gcc dot gnu dot org
2004-02-05 2:48 ` cvs-commit at gcc dot gnu dot org
` (10 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-04 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-02-04 18:42 -------
Reword this:
note: the generated code will not work, unless the class does
not have a destructor nor a delete operator.
as:
note: neither the destructor nor the class-specific operator delete will be
called, even if they are declared when the class is defined.
I believe that takes into account Gaby's and Jason's comments.
Then, please check in the patch.
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4/3.5 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (13 preceding siblings ...)
2004-02-04 18:42 ` [Bug c++/13086] [3.3/3.4/3.5 " mmitchel at gcc dot gnu dot org
@ 2004-02-05 2:48 ` cvs-commit at gcc dot gnu dot org
2004-02-05 2:49 ` cvs-commit at gcc dot gnu dot org
` (9 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-05 2:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-05 02:48 -------
Subject: Bug 13086
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: giovannibajo@gcc.gnu.org 2004-02-05 02:48:31
Modified files:
gcc/cp : ChangeLog init.c
Log message:
PR c++/13086
* init.c (build_delete): Emit a more informative error message in
case of an incomplete type, and on the correct source line.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3935&r2=1.3936
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&r1=1.360&r2=1.361
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4/3.5 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (14 preceding siblings ...)
2004-02-05 2:48 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-05 2:49 ` cvs-commit at gcc dot gnu dot org
2004-02-05 2:51 ` cvs-commit at gcc dot gnu dot org
` (8 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-05 2:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-05 02:49 -------
Subject: Bug 13086
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: giovannibajo@gcc.gnu.org 2004-02-05 02:49:32
Modified files:
gcc/testsuite : ChangeLog
gcc/testsuite/g++.dg/warn: incomplete1.C
Log message:
PR c++/13086
* g++.dg/warn/incomplete1.C: Remove xfail.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3469&r2=1.3470
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/incomplete1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4/3.5 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (15 preceding siblings ...)
2004-02-05 2:49 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-05 2:51 ` cvs-commit at gcc dot gnu dot org
2004-02-05 2:52 ` cvs-commit at gcc dot gnu dot org
` (7 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-05 2:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-05 02:51 -------
Subject: Bug 13086
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: giovannibajo@gcc.gnu.org 2004-02-05 02:51:22
Modified files:
gcc/cp : ChangeLog init.c
Log message:
PR c++/13086
* init.c (build_delete): Emit a more informative error message in
case of an incomplete type, and on the correct source line.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.35&r2=1.3892.2.36
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.356.2.4&r2=1.356.2.5
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3/3.4/3.5 regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (16 preceding siblings ...)
2004-02-05 2:51 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-05 2:52 ` cvs-commit at gcc dot gnu dot org
2004-02-05 2:55 ` [Bug c++/13086] [3.3 Regression] " giovannibajo at libero dot it
` (6 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-05 2:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-05 02:52 -------
Subject: Bug 13086
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: giovannibajo@gcc.gnu.org 2004-02-05 02:52:39
Modified files:
gcc/testsuite : ChangeLog
gcc/testsuite/g++.dg/warn: incomplete1.C
Log message:
PR c++/13086
* g++.dg/warn/incomplete1.C: Remove xfail.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.51&r2=1.3389.2.52
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/incomplete1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.1&r2=1.1.50.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3 Regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (17 preceding siblings ...)
2004-02-05 2:52 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-05 2:55 ` giovannibajo at libero dot it
2004-02-05 2:59 ` gdr at integrable-solutions dot net
` (5 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-05 2:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-02-05 02:55 -------
Fixed in 3.4.0 and mainline. Now it's a regression in the 3.3 branch only.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.3/3.4/3.5 regression] the|[3.3 Regression] the
|location of the warning |location of the warning
|message is wrong when |message is wrong when
|calling delete on incomplete|calling delete on incomplete
|type |type
Target Milestone|3.4.0 |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3 Regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (18 preceding siblings ...)
2004-02-05 2:55 ` [Bug c++/13086] [3.3 Regression] " giovannibajo at libero dot it
@ 2004-02-05 2:59 ` gdr at integrable-solutions dot net
2004-02-05 3:39 ` giovannibajo at libero dot it
` (4 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-02-05 2:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2004-02-05 02:59 -------
Subject: Re: [3.3/3.4/3.5 regression] the location of the warning message is wrong when calling delete on incomplete type
"cvs-commit at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Branch: gcc-3_4-branch
| Changes by: giovannibajo@gcc.gnu.org 2004-02-05 02:52:39
It is OK for gcc-3_3-branch too.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3 Regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (19 preceding siblings ...)
2004-02-05 2:59 ` gdr at integrable-solutions dot net
@ 2004-02-05 3:39 ` giovannibajo at libero dot it
2004-02-05 13:22 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-05 3:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-02-05 03:39 -------
Subject: Re: [3.3 Regression] the location of the warning message is wrong when calling delete on incomplete type
> It is OK for gcc-3_3-branch too.
I just tested it there, no regressions. Is the branch still freezed, isn't it?
Giovanni Bajo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3 Regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (20 preceding siblings ...)
2004-02-05 3:39 ` giovannibajo at libero dot it
@ 2004-02-05 13:22 ` cvs-commit at gcc dot gnu dot org
2004-02-05 13:24 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
24 siblings, 0 replies; 26+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-05 13:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-05 13:22 -------
Subject: Bug 13086
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: giovannibajo@gcc.gnu.org 2004-02-05 13:22:11
Modified files:
gcc/cp : ChangeLog init.c
Log message:
PR c++/13086
* init.c (build_delete): Emit a more informative error message in
case of an incomplete type, and on the correct source line.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.246&r2=1.3076.2.247
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.299.2.13&r2=1.299.2.14
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3 Regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (21 preceding siblings ...)
2004-02-05 13:22 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-05 13:24 ` cvs-commit at gcc dot gnu dot org
2004-02-05 13:25 ` giovannibajo at libero dot it
2004-02-05 16:58 ` giovannibajo at libero dot it
24 siblings, 0 replies; 26+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-05 13:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-05 13:24 -------
Subject: Bug 13086
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: giovannibajo@gcc.gnu.org 2004-02-05 13:24:07
Modified files:
gcc/testsuite : ChangeLog
gcc/testsuite/g++.dg/warn: incomplete1.C
Log message:
PR c++/13086
* g++.dg/warn/incomplete1.C: Remove xfail.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.355&r2=1.2261.2.356
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/incomplete1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1&r2=1.1.22.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3 Regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (22 preceding siblings ...)
2004-02-05 13:24 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-05 13:25 ` giovannibajo at libero dot it
2004-02-05 16:58 ` giovannibajo at libero dot it
24 siblings, 0 replies; 26+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-05 13:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-02-05 13:25 -------
Patch backported. This bug is now fixed in any future GCC version since 3.3.3.
Thanks for your report!
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Bug c++/13086] [3.3 Regression] the location of the warning message is wrong when calling delete on incomplete type
2003-11-17 16:59 [Bug c++/13086] New: warning: `e' has incomplete type without location gcc-bugzilla at gcc dot gnu dot org
` (23 preceding siblings ...)
2004-02-05 13:25 ` giovannibajo at libero dot it
@ 2004-02-05 16:58 ` giovannibajo at libero dot it
24 siblings, 0 replies; 26+ messages in thread
From: giovannibajo at libero dot it @ 2004-02-05 16:58 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.4 |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086
^ permalink raw reply [flat|nested] 26+ messages in thread