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

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).