public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions
@ 2009-07-02 14:41 aaz at althenia dot net
2009-07-02 14:59 ` [Bug c++/40619] " paolo dot carlini at oracle dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: aaz at althenia dot net @ 2009-07-02 14:41 UTC (permalink / raw)
To: gcc-bugs
template<typename U> struct X {};
template<typename T> auto f(T t) -> X<decltype(t+1)> {}
template<typename T> auto g(T t) -> X<decltype(t+1)> {}
Compiling with -std=c++0x gives
decltype_ice.cc:4:52: internal compiler error: Segmentation fault: 11
--
Summary: [c++0x] ICE on repeated decltype expression in auto
functions
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: aaz at althenia dot net
GCC build triplet: x86_64-portbld-freebsd7.2
GCC host triplet: x86_64-portbld-freebsd7.2
GCC target triplet: x86_64-portbld-freebsd7.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40619] [c++0x] ICE on repeated decltype expression in auto functions
2009-07-02 14:41 [Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions aaz at althenia dot net
@ 2009-07-02 14:59 ` paolo dot carlini at oracle dot com
2009-07-04 4:34 ` jason at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-07-02 14:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2009-07-02 14:59 -------
Jason, can you have a look to this one? Thanks in advance!
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-07-02 14:59:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40619] [c++0x] ICE on repeated decltype expression in auto functions
2009-07-02 14:41 [Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions aaz at althenia dot net
2009-07-02 14:59 ` [Bug c++/40619] " paolo dot carlini at oracle dot com
@ 2009-07-04 4:34 ` jason at gcc dot gnu dot org
2009-07-04 10:33 ` paolo dot carlini at oracle dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-04 4:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-07-04 04:34 -------
Subject: Bug 40619
Author: jason
Date: Sat Jul 4 04:34:03 2009
New Revision: 149223
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149223
Log:
PR c++/40619
* cp-tree.h (struct lang_decl_parm): New.
(struct lang_decl): Add it.
(LANG_DECL_PARM_CHECK): New.
(DECL_PARM_INDEX): New.
* decl2.c (parm_index): Remove.
* lex.c (retrofit_lang_decl): Handle parms.
(cxx_dup_lang_specific_decl): Likewise.
* mangle.c (write_expression): Adjust.
* tree.c (cp_tree_equal): Adjust.
(decl_linkage): Only check DECL_COMDAT for functions and variables.
* parser.c (cp_parser_parameter_declaration_list): Set
DECL_PARM_INDEX.
* pt.c (iterative_hash_template_arg): Hash it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/auto16.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl2.c
trunk/gcc/cp/lex.c
trunk/gcc/cp/mangle.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40619] [c++0x] ICE on repeated decltype expression in auto functions
2009-07-02 14:41 [Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions aaz at althenia dot net
2009-07-02 14:59 ` [Bug c++/40619] " paolo dot carlini at oracle dot com
2009-07-04 4:34 ` jason at gcc dot gnu dot org
@ 2009-07-04 10:33 ` paolo dot carlini at oracle dot com
2009-07-04 12:54 ` aaz at althenia dot net
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-07-04 10:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo dot carlini at oracle dot com 2009-07-04 10:33 -------
Thanks again Jason.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40619] [c++0x] ICE on repeated decltype expression in auto functions
2009-07-02 14:41 [Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions aaz at althenia dot net
` (2 preceding siblings ...)
2009-07-04 10:33 ` paolo dot carlini at oracle dot com
@ 2009-07-04 12:54 ` aaz at althenia dot net
2009-07-04 18:12 ` jason at gcc dot gnu dot org
2009-07-05 1:01 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: aaz at althenia dot net @ 2009-07-04 12:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from aaz at althenia dot net 2009-07-04 12:54 -------
It works. Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40619] [c++0x] ICE on repeated decltype expression in auto functions
2009-07-02 14:41 [Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions aaz at althenia dot net
` (3 preceding siblings ...)
2009-07-04 12:54 ` aaz at althenia dot net
@ 2009-07-04 18:12 ` jason at gcc dot gnu dot org
2009-07-05 1:01 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-04 18:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jason at gcc dot gnu dot org 2009-07-04 18:12 -------
Subject: Bug 40619
Author: jason
Date: Sat Jul 4 18:11:59 2009
New Revision: 149240
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149240
Log:
PR c++/40619
* tree.c (cp_tree_equal) [PARM_DECL]: Don't check parm index.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/auto16.C
- copied unchanged from r149223,
trunk/gcc/testsuite/g++.dg/cpp0x/auto16.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/tree.c
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ (props changed)
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C
(props changed)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/
('svn:mergeinfo' added)
Propchange: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C
('svn:mergeinfo' modified)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/40619] [c++0x] ICE on repeated decltype expression in auto functions
2009-07-02 14:41 [Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions aaz at althenia dot net
` (4 preceding siblings ...)
2009-07-04 18:12 ` jason at gcc dot gnu dot org
@ 2009-07-05 1:01 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-07-05 1:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at gcc dot gnu dot org 2009-07-05 01:01 -------
Fixed for 4.4.1.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-07-05 1:01 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-02 14:41 [Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions aaz at althenia dot net
2009-07-02 14:59 ` [Bug c++/40619] " paolo dot carlini at oracle dot com
2009-07-04 4:34 ` jason at gcc dot gnu dot org
2009-07-04 10:33 ` paolo dot carlini at oracle dot com
2009-07-04 12:54 ` aaz at althenia dot net
2009-07-04 18:12 ` jason at gcc dot gnu dot org
2009-07-05 1:01 ` 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).