public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore
@ 2005-04-25 9:58 loose at astron dot nl
2005-04-25 11:59 ` [Bug c++/21210] Trouble with __complex__ types default construction pcarlini at suse dot de
` (7 more replies)
0 siblings, 8 replies; 11+ messages in thread
From: loose at astron dot nl @ 2005-04-25 9:58 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2640 bytes --]
The GCC 4.0.0 release does not support the use of the GNU builtin __complex__
anymore in, e.g., std::vector. The code below used to compile on GNU
(compatible) compilers prior to GCC 4.0
<code>
#include <vector>
typedef float __complex__ fcomplex;
std::vector<fcomplex> vfc(10);
</code>
GCC 4.0.0 produces the following diagnostic:
$ /data/loose/gcc-4.0.0/bin/g++ -v -save-temps -c -Wall -W tVec.cc
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../../src/gcc-4.0.0/configure --prefix=/data/loose/gcc-4.0.0
--enable-threads --enable-__cxa_atexit
Thread model: posix
gcc version 4.0.0
/data/loose/gcc-4.0.0/libexec/gcc/i686-pc-linux-gnu/4.0.0/cc1plus -E -quiet -v
-D_GNU_SOURCE tVec.cc -mtune=pentiumpro -Wall -W -fpch-preprocess -o tVec.ii
ignoring nonexistent directory
"/data/loose/gcc-4.0.0/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/data/loose/gcc-4.0.0/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0
/data/loose/gcc-4.0.0/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/i686-pc-linux-gnu
/data/loose/gcc-4.0.0/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/backward
/usr/local/include
/data/loose/gcc-4.0.0/include
/data/loose/gcc-4.0.0/lib/gcc/i686-pc-linux-gnu/4.0.0/include
/usr/include
End of search list.
/data/loose/gcc-4.0.0/libexec/gcc/i686-pc-linux-gnu/4.0.0/cc1plus
-fpreprocessed tVec.ii -quiet -dumpbase tVec.cc -mtune=pentiumpro -auxbase tVec
-Wall -W -version -o tVec.s
GNU C++ version 4.0.0 (i686-pc-linux-gnu)
compiled by GNU C version 4.0.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
/data/loose/gcc-4.0.0/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_vector.h:
In constructor std::vector<_Tp, _Alloc>::vector(size_t) [with _Tp = float
__complex__, _Alloc = std::allocator<float __complex__>]:
tVec.cc:3: instantiated from here
/data/loose/gcc-4.0.0/lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_vector.h:219:
error: invalid cast from type int to type float __complex__
--
Summary: STL containers do not accept GNU builtin __complex__
type anymore
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: loose at astron dot nl
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] Trouble with __complex__ types default construction
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
@ 2005-04-25 11:59 ` pcarlini at suse dot de
2005-04-25 13:24 ` [Bug c++/21210] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: pcarlini at suse dot de @ 2005-04-25 11:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2005-04-25 11:59 -------
Actually, this has nothing to do with std::vector per se. This tiny snippet
suffices to trigger the C++ front-end problem:
typedef float __complex__ fcomplex;
fcomplex cplx = fcomplex();
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|STL containers do not accept|Trouble with __complex__
|GNU builtin __complex__ type|types default construction
|anymore |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
2005-04-25 11:59 ` [Bug c++/21210] Trouble with __complex__ types default construction pcarlini at suse dot de
@ 2005-04-25 13:24 ` pinskia at gcc dot gnu dot org
2005-05-29 6:16 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-25 13:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-25 13:22 -------
Confirmed, with Paolo's reduced testcase.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Known to fail| |4.0.0 4.1.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2005-04-25 13:22:42
date| |
Summary|Trouble with __complex__ |[4.0/4.1 Regression] Trouble
|types default construction |with __complex__ types
| |default construction
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
2005-04-25 11:59 ` [Bug c++/21210] Trouble with __complex__ types default construction pcarlini at suse dot de
2005-04-25 13:24 ` [Bug c++/21210] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-29 6:16 ` mmitchel at gcc dot gnu dot org
2005-05-29 23:02 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-29 6:16 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
` (2 preceding siblings ...)
2005-05-29 6:16 ` mmitchel at gcc dot gnu dot org
@ 2005-05-29 23:02 ` mmitchel at gcc dot gnu dot org
2005-06-01 0:33 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-29 23:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-05-29 21:27 -------
See:
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02777.html
for additional analysis regarding this PR.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
` (3 preceding siblings ...)
2005-05-29 23:02 ` mmitchel at gcc dot gnu dot org
@ 2005-06-01 0:33 ` pinskia at gcc dot gnu dot org
2005-06-02 5:04 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-01 0:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-01 00:33 -------
: Search converges between 2004-10-19-161001-trunk (#599) and 2004-10-20-014001-trunk
(#600).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
` (4 preceding siblings ...)
2005-06-01 0:33 ` pinskia at gcc dot gnu dot org
@ 2005-06-02 5:04 ` mmitchel at gcc dot gnu dot org
2005-07-06 17:03 ` mmitchel at gcc dot gnu dot org
2005-09-05 17:03 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-06-02 5:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-06-02 05:04 -------
I am no longer working on this PR. There is considerable debate about what the
right changes to make to the language are, so I am leaving this aside.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
` (5 preceding siblings ...)
2005-06-02 5:04 ` mmitchel at gcc dot gnu dot org
@ 2005-07-06 17:03 ` mmitchel at gcc dot gnu dot org
2005-09-05 17:03 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-06 17:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-07-06 17:03 -------
Postponed until 4.0.2.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
` (6 preceding siblings ...)
2005-07-06 17:03 ` mmitchel at gcc dot gnu dot org
@ 2005-09-05 17:03 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-05 17:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-09-05 17:03 -------
I've removed the target milestone for this PR, as the discussion linked to shows
that we don't know yet what we want the behavior to be.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
[not found] <bug-21210-3328@http.gcc.gnu.org/bugzilla/>
2005-10-30 23:20 ` pinskia at gcc dot gnu dot org
@ 2006-06-13 18:07 ` sayle at gcc dot gnu dot org
1 sibling, 0 replies; 11+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-06-13 18:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from sayle at gcc dot gnu dot org 2006-06-13 18:06 -------
Subject: Bug 21210
Author: sayle
Date: Tue Jun 13 18:06:00 2006
New Revision: 114618
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114618
Log:
PR c++/21210
* typeck2.c (build_functional_cast): Use cp_convert to construct
non-aggregate initializers instead of the user-level build_c_cast.
* g++.dg/init/complex1.C: New test case.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/init/complex1.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/typeck2.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21210] [4.0/4.1 Regression] Trouble with __complex__ types default construction
[not found] <bug-21210-3328@http.gcc.gnu.org/bugzilla/>
@ 2005-10-30 23:20 ` pinskia at gcc dot gnu dot org
2006-06-13 18:07 ` sayle at gcc dot gnu dot org
1 sibling, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-30 23:20 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P5
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21210
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-06-13 18:06 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-25 9:58 [Bug c++/21210] New: STL containers do not accept GNU builtin __complex__ type anymore loose at astron dot nl
2005-04-25 11:59 ` [Bug c++/21210] Trouble with __complex__ types default construction pcarlini at suse dot de
2005-04-25 13:24 ` [Bug c++/21210] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-29 6:16 ` mmitchel at gcc dot gnu dot org
2005-05-29 23:02 ` mmitchel at gcc dot gnu dot org
2005-06-01 0:33 ` pinskia at gcc dot gnu dot org
2005-06-02 5:04 ` mmitchel at gcc dot gnu dot org
2005-07-06 17:03 ` mmitchel at gcc dot gnu dot org
2005-09-05 17:03 ` mmitchel at gcc dot gnu dot org
[not found] <bug-21210-3328@http.gcc.gnu.org/bugzilla/>
2005-10-30 23:20 ` pinskia at gcc dot gnu dot org
2006-06-13 18:07 ` sayle 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).