public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
@ 2003-12-05 2:17 ` pinskia at gcc dot gnu dot org
2003-12-05 2:32 ` bangerth at dealii dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-05 2:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-05 02:17 -------
The code is invalid.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
Last reconfirmed|2003-11-03 04:13:36 |2003-12-05 02:17:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
2003-12-05 2:17 ` [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode pinskia at gcc dot gnu dot org
@ 2003-12-05 2:32 ` bangerth at dealii dot org
2003-12-05 2:33 ` bangerth at dealii dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: bangerth at dealii dot org @ 2003-12-05 2:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-12-05 02:32 -------
Has this been fixed? I don't get any ICE with my mainline snapshot from
2003-12-02. Do I have to give some special flags? The only thing I get is
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc
x.cc: In instantiation of `int (test<int>::*test<int>::s_callbacks[2])(int)':
x.cc:13: instantiated from `int test<T>::run(int) [with T = int]'
x.cc:26: instantiated from here
x.cc:18: error: argument of type `int (test<int>::)(int)' does not match `int
(test<int>::*)(int)'
and from the branch:
g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/c++ x.cc
x.cc: In instantiation of `int (test<int>::*test<int>::s_callbacks[2])(int)':
x.cc:13: instantiated from `int test<T>::run(int) [with T = int]'
x.cc:26: instantiated from here
x.cc:18: error: assuming pointer to member `int test<T>::c1(int) [with T =
int]
'
x.cc:18: error: (a pointer to member can only be formed with `&test<T>::c1
[with T = int]')
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
2003-12-05 2:17 ` [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode pinskia at gcc dot gnu dot org
2003-12-05 2:32 ` bangerth at dealii dot org
@ 2003-12-05 2:33 ` bangerth at dealii dot org
2003-12-05 16:59 ` gdr at integrable-solutions dot net
` (8 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: bangerth at dealii dot org @ 2003-12-05 2:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-12-05 02:33 -------
Oh, never mind: I was testing on x86-linux, but I now see that this
is a target-bug. Sorry...
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (2 preceding siblings ...)
2003-12-05 2:33 ` bangerth at dealii dot org
@ 2003-12-05 16:59 ` gdr at integrable-solutions dot net
2003-12-21 17:24 ` [Bug c++/11303] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-12-05 16:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2003-12-05 16:59 -------
Subject: Re: [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Has this been fixed? I don't get any ICE with my mainline snapshot from
| 2003-12-02. Do I have to give some special flags? The only thing I get is
|
| g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc
| x.cc: In instantiation of `int (test<int>::*test<int>::s_callbacks[2])(int)':
| x.cc:13: instantiated from `int test<T>::run(int) [with T = int]'
| x.cc:26: instantiated from here
| x.cc:18: error: argument of type `int (test<int>::)(int)' does not match `int
| (test<int>::*)(int)'
|
| and from the branch:
| g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/c++ x.cc
| x.cc: In instantiation of `int (test<int>::*test<int>::s_callbacks[2])(int)':
| x.cc:13: instantiated from `int test<T>::run(int) [with T = int]'
| x.cc:26: instantiated from here
| x.cc:18: error: assuming pointer to member `int test<T>::c1(int) [with T =
| int]
| '
| x.cc:18: error: (a pointer to member can only be formed with `&test<T>::c1
| [with T = int]')
The pretty-printing we have in 3.4 is better, but the hint we have in
3.3.x is lost. That worries me.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (3 preceding siblings ...)
2003-12-05 16:59 ` gdr at integrable-solutions dot net
@ 2003-12-21 17:24 ` pinskia at gcc dot gnu dot org
2003-12-26 1:23 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-21 17:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-21 17:15 -------
Most likely effects all targets that are do not support weak symbols.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|target |c++
Keywords| |non-weak
Last reconfirmed|2003-12-05 02:17:38 |2003-12-21 17:15:43
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (4 preceding siblings ...)
2003-12-21 17:24 ` [Bug c++/11303] " pinskia at gcc dot gnu dot org
@ 2003-12-26 1:23 ` pinskia at gcc dot gnu dot org
2003-12-30 1:10 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-26 1:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-26 00:32 -------
For some reason the type is VOID which would mean an error but no error was shown:
<array_type 0x90cb00 type <record_type 0x41664900>
VOID
align 8 symtab 0 alias set -1>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (5 preceding siblings ...)
2003-12-26 1:23 ` pinskia at gcc dot gnu dot org
@ 2003-12-30 1:10 ` pinskia at gcc dot gnu dot org
2004-01-14 4:20 ` giovannibajo at libero dot it
` (4 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-30 1:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (6 preceding siblings ...)
2003-12-30 1:10 ` pinskia at gcc dot gnu dot org
@ 2004-01-14 4:20 ` giovannibajo at libero dot it
2004-01-24 15:54 ` [Bug c++/11303] [3.3 " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-14 4:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-01-14 04:20 -------
Moving back the milestone - it's up to the RM to decide.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/11303] [3.3 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (7 preceding siblings ...)
2004-01-14 4:20 ` giovannibajo at libero dot it
@ 2004-01-24 15:54 ` pinskia at gcc dot gnu dot org
2004-01-28 18:50 ` austern at apple dot com
` (2 subsequent siblings)
11 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-24 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-24 15:54 -------
Fixed for 3.4 and 3.5. The error message now is:
tests/pr11303.cc: In instantiation of `int (test<int>::*test<int>::s_callbacks[2])(int)':
tests/pr11303.cc:17: instantiated from `int test<T>::run(int) [with T = int]'
tests/pr11303.cc:32: instantiated from here
tests/pr11303.cc:22: error: argument of type `int (test<int>::)(int)' does not match `int
(test<int>::*)(int)'
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.3/3.4/3.5 regression] ICE|[3.3 regression] ICE in
|in stor-layout.c:304 in |stor-layout.c:304 in
|int_mode_for_mode |int_mode_for_mode
Target Milestone|3.4.0 |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/11303] [3.3 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (8 preceding siblings ...)
2004-01-24 15:54 ` [Bug c++/11303] [3.3 " pinskia at gcc dot gnu dot org
@ 2004-01-28 18:50 ` austern at apple dot com
2004-02-15 12:34 ` gdr at gcc dot gnu dot org
2004-04-27 6:30 ` gdr at gcc dot gnu dot org
11 siblings, 0 replies; 12+ messages in thread
From: austern at apple dot com @ 2004-01-28 18:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From austern at apple dot com 2004-01-28 18:50 -------
Specifically, the error is that s_callbacks is supposed to be an array of pointers-to-member, and
it's initialized with:
template <class T>
typename test<T>::callback_type test<T>::s_callbacks[] =
{
test<T>::c1,
test<T>::c2,
};
That's wrong. The way you form a pointer-to-member is with &foo::bar. The & is mandatory.
When I fix this test it compiles without error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/11303] [3.3 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (9 preceding siblings ...)
2004-01-28 18:50 ` austern at apple dot com
@ 2004-02-15 12:34 ` gdr at gcc dot gnu dot org
2004-04-27 6:30 ` gdr at gcc dot gnu dot org
11 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-02-15 12:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2004-02-15 12:34 -------
Adjust milestone
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.3 |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/11303] [3.3 regression] ICE in stor-layout.c:304 in int_mode_for_mode
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
` (10 preceding siblings ...)
2004-02-15 12:34 ` gdr at gcc dot gnu dot org
@ 2004-04-27 6:30 ` gdr at gcc dot gnu dot org
11 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-04-27 6:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2004-04-27 06:20 -------
Fixed in 3.4.0 and 3.5.0. Won't fix in 3.3.x
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|3.3.4 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-04-27 6:21 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20030624053547.11303.pinskia@gcc.gnu.org>
2003-12-05 2:17 ` [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode pinskia at gcc dot gnu dot org
2003-12-05 2:32 ` bangerth at dealii dot org
2003-12-05 2:33 ` bangerth at dealii dot org
2003-12-05 16:59 ` gdr at integrable-solutions dot net
2003-12-21 17:24 ` [Bug c++/11303] " pinskia at gcc dot gnu dot org
2003-12-26 1:23 ` pinskia at gcc dot gnu dot org
2003-12-30 1:10 ` pinskia at gcc dot gnu dot org
2004-01-14 4:20 ` giovannibajo at libero dot it
2004-01-24 15:54 ` [Bug c++/11303] [3.3 " pinskia at gcc dot gnu dot org
2004-01-28 18:50 ` austern at apple dot com
2004-02-15 12:34 ` gdr at gcc dot gnu dot org
2004-04-27 6:30 ` gdr 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).