public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__
@ 2006-07-31 21:42 reichelt at gcc dot gnu dot org
2006-07-31 21:45 ` [Bug c++/28558] " pinskia at gcc dot gnu dot org
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-31 21:42 UTC (permalink / raw)
To: gcc-bugs
The following code snippet (I'm not sure whether it's valid or not)
triggers an ICE since GCC 3.1:
===============================================
struct A {};
A *p = new A __attribute__((unused));
===============================================
bug.cc:7: internal compiler error: in build_base_path, at cp/class.c:274
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2 regression] Trouble with new and
__attribute__
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2 regression] Trouble with new and __attribute__
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
@ 2006-07-31 21:45 ` pinskia at gcc dot gnu dot org
2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-31 21:45 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2 regression] Trouble with new and __attribute__
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
2006-07-31 21:45 ` [Bug c++/28558] " pinskia at gcc dot gnu dot org
@ 2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
2006-08-18 4:14 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-31 23:44 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2 regression] Trouble with new and __attribute__
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
2006-07-31 21:45 ` [Bug c++/28558] " pinskia at gcc dot gnu dot org
2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
@ 2006-08-18 4:14 ` pinskia at gcc dot gnu dot org
2006-08-22 20:41 ` jason at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-18 4:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-18 04:13 -------
Confirmed, we add the new attribute but we cannot convert between the types for
some reason. I bet there is a way to reproduce this without using new too but
I cannot find it.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-08-18 04:13:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2 regression] Trouble with new and __attribute__
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-18 4:14 ` pinskia at gcc dot gnu dot org
@ 2006-08-22 20:41 ` jason at gcc dot gnu dot org
2006-08-22 20:42 ` jason at gcc dot gnu dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-08-22 20:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2006-08-22 20:41 -------
This testcase reproduces the bug without new. The problem is that applying
attributes to a type creates a new TYPE_MAIN_VARIANT, which is fundamentally
nonsensical for class types. We really need to impose more design on the whole
attribute system.
IMO we should give an error for this code.
struct A
{
A(int) { }
};
int main()
{
A a = (A __attribute__((unused)))0;
}
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2 regression] Trouble with new and __attribute__
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-22 20:41 ` jason at gcc dot gnu dot org
@ 2006-08-22 20:42 ` jason at gcc dot gnu dot org
2006-08-22 20:43 ` jason at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-08-22 20:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2006-08-22 20:42 -------
*** Bug 28560 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2 regression] Trouble with new and __attribute__
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-08-22 20:42 ` jason at gcc dot gnu dot org
@ 2006-08-22 20:43 ` jason at gcc dot gnu dot org
2007-02-03 18:41 ` [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs gdr at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-08-22 20:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jason at gcc dot gnu dot org 2006-08-22 20:43 -------
Related to PR 28659.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-08-22 20:43 ` jason at gcc dot gnu dot org
@ 2007-02-03 18:41 ` gdr at gcc dot gnu dot org
2007-02-03 20:49 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from gdr at gcc dot gnu dot org 2007-02-03 18:41 -------
Won't fix in GCC-4.0.x. Adjusting milestone.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.4 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-02-03 18:41 ` [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs gdr at gcc dot gnu dot org
@ 2007-02-03 20:49 ` pinskia at gcc dot gnu dot org
2007-02-14 9:14 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 20:49 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.3 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-02-03 20:49 ` pinskia at gcc dot gnu dot org
@ 2007-02-14 9:14 ` mmitchel at gcc dot gnu dot org
2007-08-06 14:42 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:14 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-02-14 9:14 ` mmitchel at gcc dot gnu dot org
@ 2007-08-06 14:42 ` pinskia at gcc dot gnu dot org
2007-08-27 21:16 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06 14:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2007-08-06 14:41 -------
We get a different ICE now:
t1.cc:4: internal compiler error: same canonical type node for different types
A and A
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2006-08-18 04:13:29 |2007-08-06 14:41:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2007-08-06 14:42 ` pinskia at gcc dot gnu dot org
@ 2007-08-27 21:16 ` jason at gcc dot gnu dot org
2007-08-28 13:57 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-08-27 21:16 UTC (permalink / raw)
To: gcc-bugs
--
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 |
Status|NEW |ASSIGNED
Last reconfirmed|2007-08-06 14:41:54 |2007-08-27 21:16:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2007-08-27 21:16 ` jason at gcc dot gnu dot org
@ 2007-08-28 13:57 ` jason at gcc dot gnu dot org
2007-08-28 19:32 ` jason at gcc dot gnu dot org
2007-11-01 21:53 ` reichelt at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-08-28 13:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jason at gcc dot gnu dot org 2007-08-28 13:57 -------
Subject: Bug 28558
Author: jason
Date: Tue Aug 28 13:57:09 2007
New Revision: 127859
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127859
Log:
PR c++/28558
* cp/decl.c (groktypename): Ignore attributes applied to class type.
* testsuite/g++.dg/ext/attrib28.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ext/attrib28.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (11 preceding siblings ...)
2007-08-28 13:57 ` jason at gcc dot gnu dot org
@ 2007-08-28 19:32 ` jason at gcc dot gnu dot org
2007-11-01 21:53 ` reichelt at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-08-28 19:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jason at gcc dot gnu dot org 2007-08-28 19:32 -------
Fixed for 4.3, not going to bother applying to other branches.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
` (12 preceding siblings ...)
2007-08-28 19:32 ` jason at gcc dot gnu dot org
@ 2007-11-01 21:53 ` reichelt at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-01 21:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from reichelt at gcc dot gnu dot org 2007-11-01 21:53 -------
Adjusting target milestone sionce this is only fixed on mainline.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.3 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28558
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2007-11-01 21:53 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-31 21:42 [Bug c++/28558] New: [4.0/4.1/4.2 regression] Trouble with new and __attribute__ reichelt at gcc dot gnu dot org
2006-07-31 21:45 ` [Bug c++/28558] " pinskia at gcc dot gnu dot org
2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
2006-08-18 4:14 ` pinskia at gcc dot gnu dot org
2006-08-22 20:41 ` jason at gcc dot gnu dot org
2006-08-22 20:42 ` jason at gcc dot gnu dot org
2006-08-22 20:43 ` jason at gcc dot gnu dot org
2007-02-03 18:41 ` [Bug c++/28558] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ and non-PODs gdr at gcc dot gnu dot org
2007-02-03 20:49 ` pinskia at gcc dot gnu dot org
2007-02-14 9:14 ` mmitchel at gcc dot gnu dot org
2007-08-06 14:42 ` pinskia at gcc dot gnu dot org
2007-08-27 21:16 ` jason at gcc dot gnu dot org
2007-08-28 13:57 ` jason at gcc dot gnu dot org
2007-08-28 19:32 ` jason at gcc dot gnu dot org
2007-11-01 21:53 ` reichelt at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).