public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49165] New: ICE on for-loop/throw combination
@ 2011-05-25 18:34 gcc at portuosus dot com
  2011-05-25 18:43 ` [Bug c++/49165] " gcc at portuosus dot com
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: gcc at portuosus dot com @ 2011-05-25 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE on for-loop/throw combination
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gcc@portuosus.com


Source file /tmp/redux.cc:

#include <iostream>
#include <string>

int main(int argc,char**argv)
{
  std::string str;
  for ( int field(0);
        (field<10) && ((std::cin>>str)?true:(throw std::string("failure")));
        field++ );
}

produces:

/tmp/redux.cc: In function ‘int main(int, char**)’:
/tmp/redux.cc:7:3: internal compiler error: in fold_convert_loc, at
fold-const.c:2670


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

end of thread, other threads:[~2011-07-19 19:53 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 18:34 [Bug c++/49165] New: ICE on for-loop/throw combination gcc at portuosus dot com
2011-05-25 18:43 ` [Bug c++/49165] " gcc at portuosus dot com
2011-05-25 18:55 ` [Bug c++/49165] [4.3/4.4/4.5/4.6/4.7 Regression] " jakub at gcc dot gnu.org
2011-05-25 19:51 ` jakub at gcc dot gnu.org
2011-05-25 20:30 ` jason at gcc dot gnu.org
2011-05-26  7:48 ` jakub at gcc dot gnu.org
2011-05-26  8:30 ` rguenth at gcc dot gnu.org
2011-05-26  9:26 ` jakub at gcc dot gnu.org
2011-05-26 10:28 ` jakub at gcc dot gnu.org
2011-05-26 10:34 ` jakub at gcc dot gnu.org
2011-05-26 11:05 ` [Bug c++/49165] [4.3/4.4/4.5 " jakub at gcc dot gnu.org
2011-05-27  8:02 ` gcc at portuosus dot com
2011-05-27 12:31 ` jakub at gcc dot gnu.org
2011-05-27 19:24 ` jakub at gcc dot gnu.org
2011-05-27 19:32 ` jakub at gcc dot gnu.org
2011-05-27 22:31 ` gcc at portuosus dot com
2011-06-27 10:45 ` rguenth at gcc dot gnu.org
2011-06-27 13:51 ` rguenth at gcc dot gnu.org
2011-07-19 12:55 ` [Bug c++/49165] [4.4/4.5 " jakub at gcc dot gnu.org
2011-07-19 12:57 ` jakub at gcc dot gnu.org
2011-07-19 19:31 ` jakub at gcc dot gnu.org
2011-07-19 19:31 ` jakub at gcc dot gnu.org
2011-07-19 19:53 ` jakub 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).