public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13389] New: sizeof in template argument causes segmentation fault
@ 2003-12-12 13:55 heinlein at informatik dot uni-ulm dot de
2003-12-12 14:27 ` [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI bangerth at dealii dot org
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: heinlein at informatik dot uni-ulm dot de @ 2003-12-12 13:55 UTC (permalink / raw)
To: gcc-bugs
ixtys$ uname -a
Linux ixtys 2.2.18 #1 Fri Jan 19 22:10:35 GMT 2001 i686 unknown
ixtys$ g++ -v
Reading specs from
/home/heinlein/soft/GCC/3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/home/heinlein/soft/GCC/3.2
Thread model: posix
gcc version 3.2
ixtys$ g++ -c bug.cxx -save-temps
bug.cxx: In function `int main()':
bug.cxx:13: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
ixtys$ cat bug.ii
# 1 "bug.cxx"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "bug.cxx"
template <int i>
struct X {
typedef int Z;
};
template <typename T>
T f (T) {}
template <typename T>
void g (T, typename X<sizeof f(T())>::Z) {}
int main () {
g(1, 2);
}
--
Summary: sizeof in template argument causes segmentation fault
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: heinlein at informatik dot uni-ulm dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13389
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI
2003-12-12 13:55 [Bug c++/13389] New: sizeof in template argument causes segmentation fault heinlein at informatik dot uni-ulm dot de
@ 2003-12-12 14:27 ` bangerth at dealii dot org
2003-12-16 17:07 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: bangerth at dealii dot org @ 2003-12-12 14:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-12-12 14:27 -------
Confirmed, somehow: this presently gives these error messages:
g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/c++ -c x.cc
x.cc:13: sorry, unimplemented: call_expr cannot be mangled due to a defect in
the C++ ABI
And the same with mainline, even with -fabi-version=0. I don't know
whether this still qualifies as a bug proper, but since it's not
implemented we should keep it open.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2003-12-12 14:27:54
date| |
Summary|sizeof in template argument |sizeof in
|causes segmentation fault |template:unimplemented:
| |call_expr cannot be mangled
| |due to a defect in the C++
| |ABI
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13389
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI
2003-12-12 13:55 [Bug c++/13389] New: sizeof in template argument causes segmentation fault heinlein at informatik dot uni-ulm dot de
2003-12-12 14:27 ` [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI bangerth at dealii dot org
@ 2003-12-16 17:07 ` pinskia at gcc dot gnu dot org
2003-12-16 19:15 ` giovannibajo at libero dot it
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-16 17:07 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13389
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI
2003-12-12 13:55 [Bug c++/13389] New: sizeof in template argument causes segmentation fault heinlein at informatik dot uni-ulm dot de
2003-12-12 14:27 ` [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI bangerth at dealii dot org
2003-12-16 17:07 ` pinskia at gcc dot gnu dot org
@ 2003-12-16 19:15 ` giovannibajo at libero dot it
2003-12-16 19:26 ` [Bug c++/13389] [ABI] " pinskia at gcc dot gnu dot org
2004-01-11 12:03 ` [Bug c++/13389] " giovannibajo at libero dot it
4 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2003-12-16 19:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2003-12-16 19:01 -------
I think we should just wait for the Itanium ABI commitee to update its ABI. See
also this thread: http://gcc.gnu.org/ml/gcc/2003-06/msg01948.html
especially:
http://gcc.gnu.org/ml/gcc/2003-06/msg02018.html
http://gcc.gnu.org/ml/gcc/2003-06/msg02025.html
Mark, are there any news on this issue?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
Status|NEW |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13389
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/13389] [ABI] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI
2003-12-12 13:55 [Bug c++/13389] New: sizeof in template argument causes segmentation fault heinlein at informatik dot uni-ulm dot de
` (2 preceding siblings ...)
2003-12-16 19:15 ` giovannibajo at libero dot it
@ 2003-12-16 19:26 ` pinskia at gcc dot gnu dot org
2004-01-11 12:03 ` [Bug c++/13389] " giovannibajo at libero dot it
4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-16 19:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-16 19:05 -------
Should not be in waiting but suspended.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |SUSPENDED
Summary|sizeof in |[ABI] sizeof in
|template:unimplemented: |template:unimplemented:
|call_expr cannot be mangled |call_expr cannot be mangled
|due to a defect in the C++ |due to a defect in the C++
|ABI |ABI
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13389
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI
2003-12-12 13:55 [Bug c++/13389] New: sizeof in template argument causes segmentation fault heinlein at informatik dot uni-ulm dot de
` (3 preceding siblings ...)
2003-12-16 19:26 ` [Bug c++/13389] [ABI] " pinskia at gcc dot gnu dot org
@ 2004-01-11 12:03 ` giovannibajo at libero dot it
4 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-11 12:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-11 12:03 -------
Not an enhancemente: it's an ICE on a valid piece of C++ code.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13389
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI
[not found] <bug-13389-7526@http.gcc.gnu.org/bugzilla/>
2009-03-03 21:49 ` jason at gcc dot gnu dot org
@ 2009-04-09 20:29 ` jason at gcc dot gnu dot org
1 sibling, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-04-09 20:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at gcc dot gnu dot org 2009-04-09 20:29 -------
Fixed.
--
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=13389
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI
[not found] <bug-13389-7526@http.gcc.gnu.org/bugzilla/>
@ 2009-03-03 21:49 ` jason at gcc dot gnu dot org
2009-04-09 20:29 ` jason at gcc dot gnu dot org
1 sibling, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-03-03 21:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jason at gcc dot gnu dot org 2009-03-03 21:49 -------
Taking mangling issues.
--
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|SUSPENDED |ASSIGNED
Last reconfirmed|2005-12-18 20:24:58 |2009-03-03 21:49:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13389
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-04-09 20:29 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12 13:55 [Bug c++/13389] New: sizeof in template argument causes segmentation fault heinlein at informatik dot uni-ulm dot de
2003-12-12 14:27 ` [Bug c++/13389] sizeof in template:unimplemented: call_expr cannot be mangled due to a defect in the C++ ABI bangerth at dealii dot org
2003-12-16 17:07 ` pinskia at gcc dot gnu dot org
2003-12-16 19:15 ` giovannibajo at libero dot it
2003-12-16 19:26 ` [Bug c++/13389] [ABI] " pinskia at gcc dot gnu dot org
2004-01-11 12:03 ` [Bug c++/13389] " giovannibajo at libero dot it
[not found] <bug-13389-7526@http.gcc.gnu.org/bugzilla/>
2009-03-03 21:49 ` jason at gcc dot gnu dot org
2009-04-09 20:29 ` jason 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).