public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
@ 2005-08-12 17:31 ` pinskia at gcc dot gnu dot org
2005-08-19 14:34 ` reichelt at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-12 17:31 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments
@ 2005-08-12 17:31 pinskia at gcc dot gnu dot org
2005-08-12 17:31 ` [Bug c++/23357] " pinskia at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-12 17:31 UTC (permalink / raw)
To: gcc-bugs
Testcase:
template<typename _Tp>
struct __per_type_pool_policy
{
static void _S_get_pool()
{
const static int __align = (__alignof__(_Tp) >= 1 ? __alignof__(_Tp) : 1);
static int _S_tune( 2 >= __align ? 1 : __align);
}
};
This did not ICE in 4.0.0. Also this is reduced from PR 23352 but I was trying to reduce a different ICE
when finding with this one.
--
Summary: [4.1 Regression] ICE with __alignof__ on template
arguments
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
2005-08-12 17:31 ` [Bug c++/23357] " pinskia at gcc dot gnu dot org
@ 2005-08-19 14:34 ` reichelt at gcc dot gnu dot org
2005-08-19 14:35 ` reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-19 14:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-19 14:34 -------
*** Bug 23481 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
2005-08-12 17:31 ` [Bug c++/23357] " pinskia at gcc dot gnu dot org
2005-08-19 14:34 ` reichelt at gcc dot gnu dot org
@ 2005-08-19 14:35 ` reichelt at gcc dot gnu dot org
2005-08-19 14:44 ` reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-19 14:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-19 14:35 -------
Confirmed. Similar testcase from PR 23481:
=========================================================
template<typename T> bool foo()
{
const long int i = sizeof(T) > 1 ? sizeof(T) : 0;
return i > 0;
}
=========================================================
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |monitored
Last reconfirmed|0000-00-00 00:00:00 |2005-08-19 14:35:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-08-19 14:35 ` reichelt at gcc dot gnu dot org
@ 2005-08-19 14:44 ` reichelt at gcc dot gnu dot org
2005-09-04 14:54 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-19 14:44 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-08-19 14:44 ` reichelt at gcc dot gnu dot org
@ 2005-09-04 14:54 ` pinskia at gcc dot gnu dot org
2005-09-09 17:01 ` janis at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-04 14:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-04 14:54 -------
It worked with "4.1.0 20050622".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-09-04 14:54 ` pinskia at gcc dot gnu dot org
@ 2005-09-09 17:01 ` janis at gcc dot gnu dot org
2005-09-09 17:11 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-09-09 17:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From janis at gcc dot gnu dot org 2005-09-09 17:01 -------
The testcase starts failing with this patch from pinskia:
http://gcc.gnu.org/ml/gcc-cvs/2005-08/msg00068.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-09-09 17:01 ` janis at gcc dot gnu dot org
@ 2005-09-09 17:11 ` pinskia at gcc dot gnu dot org
2005-09-14 18:13 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-09 17:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-09 17:11 -------
This is more of the issue for a front-end person, mainly why are we calling convert_to_integer while in a
template since that assumes all the types are set up correctly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-09-09 17:11 ` pinskia at gcc dot gnu dot org
@ 2005-09-14 18:13 ` jason at gcc dot gnu dot org
2005-09-16 6:51 ` cvs-commit at gcc dot gnu dot org
2005-09-16 15:42 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2005-09-14 18:13 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-08-19 14:35:26 |2005-09-14 18:12:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-09-14 18:13 ` jason at gcc dot gnu dot org
@ 2005-09-16 6:51 ` cvs-commit at gcc dot gnu dot org
2005-09-16 15:42 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-16 6:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-16 06:51 -------
Subject: Bug 23357
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jason@gcc.gnu.org 2005-09-16 06:50:57
Modified files:
gcc/cp : ChangeLog cp-tree.def
Added files:
gcc/testsuite/g++.dg/template: sizeof10.C
Log message:
PR c++/23357
* cp-tree.def (SIZEOF_EXPR, ALIGNOF_EXPR): Change code class to
tcc_expression.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4894&r2=1.4895
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.def.diff?cvsroot=gcc&r1=1.109&r2=1.110
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/sizeof10.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/23357] [4.1 Regression] ICE with __alignof__ on template arguments
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2005-09-16 6:51 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-16 15:42 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-16 15:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-16 15:42 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-09-16 15:42 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-12 17:31 [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments pinskia at gcc dot gnu dot org
2005-08-12 17:31 ` [Bug c++/23357] " pinskia at gcc dot gnu dot org
2005-08-19 14:34 ` reichelt at gcc dot gnu dot org
2005-08-19 14:35 ` reichelt at gcc dot gnu dot org
2005-08-19 14:44 ` reichelt at gcc dot gnu dot org
2005-09-04 14:54 ` pinskia at gcc dot gnu dot org
2005-09-09 17:01 ` janis at gcc dot gnu dot org
2005-09-09 17:11 ` pinskia at gcc dot gnu dot org
2005-09-14 18:13 ` jason at gcc dot gnu dot org
2005-09-16 6:51 ` cvs-commit at gcc dot gnu dot org
2005-09-16 15:42 ` pinskia 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).