public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype)
@ 2011-01-14 10:34 schmidt-thieme at ismll dot de
  2011-01-14 11:00 ` [Bug c++/47289] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: schmidt-thieme at ismll dot de @ 2011-01-14 10:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

           Summary: internal compiler error: in tsubst_pack_expansion
                    (triggered by decltype)
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: schmidt-thieme@ismll.de


Created attachment 22963
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22963
preprocessed source file

gcc (svn rev. 166057) throws an internal compiler error when 
compiling the attached file "bug-gcc-compiler-error.ii"

> g++ -std=c++0x bug-gcc-compiler-error.ii
bug-gcc-compiler-error.cpp: In function ‘int main()’:
bug-gcc-compiler-error.cpp:33: internal compiler error: in
tsubst_pack_expansion, at cp/pt.c:7544

The code compiles fine if the definition of "reverse" is replaced
by:

template <template <typename... __ARGS> class _F, typename _T, typename...
_ARGS>
_T reverse (_T x1, _ARGS... args) {
  return _F<_T, _ARGS...>::call_function(x1, args...);
}

gcc was build from source and configured via
> configure --prefix=/opt/prog/gcc/ -enable-languages=c,c++,fortran --disable-multilib
on ubuntu
> uname -a
Linux lst-desktop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 05:14:15 UTC 2010
x86_64 GNU/Linux


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] internal compiler error: in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
@ 2011-01-14 11:00 ` rguenth at gcc dot gnu.org
  2011-01-14 15:02 ` [Bug c++/47289] [C++0x] ICE " hjl.tools at gmail dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-14 11:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.01.14 10:27:04
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.5, 4.5.2, 4.6.0

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-14 10:27:04 UTC ---
Confirmed.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
  2011-01-14 11:00 ` [Bug c++/47289] " rguenth at gcc dot gnu.org
@ 2011-01-14 15:02 ` hjl.tools at gmail dot com
  2011-01-14 21:36 ` jason at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-14 15:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-14 14:39:14 UTC ---
ICE is caused by revision 145013:

http://gcc.gnu.org/ml/gcc-cvs/2009-03/msg00520.html


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
  2011-01-14 11:00 ` [Bug c++/47289] " rguenth at gcc dot gnu.org
  2011-01-14 15:02 ` [Bug c++/47289] [C++0x] ICE " hjl.tools at gmail dot com
@ 2011-01-14 21:36 ` jason at gcc dot gnu.org
  2011-01-14 21:50 ` paolo.carlini at oracle dot com
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2011-01-14 21:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-01-14 21:26:50 UTC ---
Author: jason
Date: Fri Jan 14 21:26:47 2011
New Revision: 168822

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168822
Log:
    PR c++/47289
    * pt.c (coerce_template_parms): Fix error recovery.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic105.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (2 preceding siblings ...)
  2011-01-14 21:36 ` jason at gcc dot gnu.org
@ 2011-01-14 21:50 ` paolo.carlini at oracle dot com
  2011-01-14 22:31 ` jason at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-01-14 21:50 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-01-14 21:41:31 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (3 preceding siblings ...)
  2011-01-14 21:50 ` paolo.carlini at oracle dot com
@ 2011-01-14 22:31 ` jason at gcc dot gnu.org
  2011-01-15  0:39 ` paolo.carlini at oracle dot com
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2011-01-14 22:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org
   Target Milestone|4.6.0                       |---

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-01-14 22:22:19 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (4 preceding siblings ...)
  2011-01-14 22:31 ` jason at gcc dot gnu.org
@ 2011-01-15  0:39 ` paolo.carlini at oracle dot com
  2011-01-18 14:21 ` [Bug c++/47289] [4.4/4.5 Regression] " hjl.tools at gmail dot com
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-01-15  0:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [4.4/4.5 Regression] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (5 preceding siblings ...)
  2011-01-15  0:39 ` paolo.carlini at oracle dot com
@ 2011-01-18 14:21 ` hjl.tools at gmail dot com
  2011-03-08 13:24 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-18 14:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
   Target Milestone|4.6.0                       |4.4.6
            Summary|[C++0x] ICE in              |[4.4/4.5 Regression]
                   |tsubst_pack_expansion       |[C++0x] ICE in
                   |(triggered by decltype)     |tsubst_pack_expansion
                   |                            |(triggered by decltype)

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-18 14:17:13 UTC ---
4.4/4.5 regression.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [4.4/4.5 Regression] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (6 preceding siblings ...)
  2011-01-18 14:21 ` [Bug c++/47289] [4.4/4.5 Regression] " hjl.tools at gmail dot com
@ 2011-03-08 13:24 ` rguenth at gcc dot gnu.org
  2011-03-08 22:40 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-08 13:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
           Priority|P3                          |P2
             Status|REOPENED                    |RESOLVED
      Known to work|                            |4.3.4, 4.6.0
         Resolution|                            |FIXED
   Target Milestone|4.4.6                       |4.6.0
      Known to fail|4.6.0                       |

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-08 13:24:34 UTC ---
4.3 rejects the code without ICEing because it doesn't have decltype.

I gather from Jason closing the bug the fix isn't worth backporting.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [4.4/4.5 Regression] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (7 preceding siblings ...)
  2011-03-08 13:24 ` rguenth at gcc dot gnu.org
@ 2011-03-08 22:40 ` jason at gcc dot gnu.org
  2011-03-08 22:41 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-08 22:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-08 22:40:10 UTC ---
Author: jason
Date: Tue Mar  8 22:40:06 2011
New Revision: 170796

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170796
Log:
    PR c++/47289
    * pt.c (coerce_template_parms): Fix error recovery.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/cpp0x/variadic105.C
Modified:
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/pt.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [4.4/4.5 Regression] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (9 preceding siblings ...)
  2011-03-08 22:41 ` jason at gcc dot gnu.org
@ 2011-03-08 22:41 ` jason at gcc dot gnu.org
  2011-03-08 22:42 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-08 22:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-08 22:41:30 UTC ---
I tend to be very conservative about ICE-on-invalid fixes on earlier releases,
since the risk/reward ratio seems low.  But this one seems safe enough that
I'll go ahead and backport it.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [4.4/4.5 Regression] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (8 preceding siblings ...)
  2011-03-08 22:40 ` jason at gcc dot gnu.org
@ 2011-03-08 22:41 ` jason at gcc dot gnu.org
  2011-03-08 22:41 ` jason at gcc dot gnu.org
  2011-03-08 22:42 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-08 22:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-08 22:40:55 UTC ---
Author: jason
Date: Tue Mar  8 22:40:50 2011
New Revision: 170797

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170797
Log:
    PR c++/47289
    * pt.c (coerce_template_parms): Fix error recovery.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/variadic105.C
Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/pt.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug c++/47289] [4.4/4.5 Regression] [C++0x] ICE in tsubst_pack_expansion (triggered by decltype)
  2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
                   ` (10 preceding siblings ...)
  2011-03-08 22:41 ` jason at gcc dot gnu.org
@ 2011-03-08 22:42 ` jason at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-08 22:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47289

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.0                       |4.4.6


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-03-08 22:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-14 10:34 [Bug c++/47289] New: internal compiler error: in tsubst_pack_expansion (triggered by decltype) schmidt-thieme at ismll dot de
2011-01-14 11:00 ` [Bug c++/47289] " rguenth at gcc dot gnu.org
2011-01-14 15:02 ` [Bug c++/47289] [C++0x] ICE " hjl.tools at gmail dot com
2011-01-14 21:36 ` jason at gcc dot gnu.org
2011-01-14 21:50 ` paolo.carlini at oracle dot com
2011-01-14 22:31 ` jason at gcc dot gnu.org
2011-01-15  0:39 ` paolo.carlini at oracle dot com
2011-01-18 14:21 ` [Bug c++/47289] [4.4/4.5 Regression] " hjl.tools at gmail dot com
2011-03-08 13:24 ` rguenth at gcc dot gnu.org
2011-03-08 22:40 ` jason at gcc dot gnu.org
2011-03-08 22:41 ` jason at gcc dot gnu.org
2011-03-08 22:41 ` jason at gcc dot gnu.org
2011-03-08 22:42 ` jason at gcc dot gnu.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).