public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17345] New: internal compiler error: in optimize_mode_switching, at lcm.c:1225
@ 2004-09-07 10:58 wanderer at rsu dot ru
  2004-09-07 11:02 ` [Bug c++/17345] " wanderer at rsu dot ru
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: wanderer at rsu dot ru @ 2004-09-07 10:58 UTC (permalink / raw)
  To: gcc-bugs

Current CVS mainline G++ (3.5.0 20040906) ICE with error message:

test.cpp: In member function `int Class1::calc()':
test.cpp:29: internal compiler error: in optimize_mode_switching, at lcm.c:1225
Please submit a full bug report,

at testcase:

---8X----------------
#include <map>

class Class1 {
  int calc();
  int num; 
  static Class1* get();
};

int Class1::calc() {
  int res = 0;

  typedef std::map<unsigned, unsigned> MapU2U;
  MapU2U mapU2U;

  for(MapU2U::iterator it = mapU2U.begin(); it != mapU2U.end(); ++it) {
    double f = it->second / get()->num;
    res = std::max( (int) f, res);
  }

  return res;
}
---X8----------------

Commandline: g++ test.cpp

-- 
           Summary: internal compiler error: in optimize_mode_switching, at
                    lcm.c:1225
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wanderer at rsu dot ru
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-unknown-freebsd5.1
  GCC host triplet: i386-unknown-freebsd5.1
GCC target triplet: i386-unknown-freebsd5.1


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


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

end of thread, other threads:[~2004-09-13 17:34 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-07 10:58 [Bug c++/17345] New: internal compiler error: in optimize_mode_switching, at lcm.c:1225 wanderer at rsu dot ru
2004-09-07 11:02 ` [Bug c++/17345] " wanderer at rsu dot ru
2004-09-07 11:02 ` wanderer at rsu dot ru
2004-09-07 11:03 ` wanderer at rsu dot ru
2004-09-07 15:24 ` [Bug rtl-optimization/17345] " pinskia at gcc dot gnu dot org
2004-09-07 16:27 ` giovannibajo at libero dot it
2004-09-07 16:33 ` pinskia at gcc dot gnu dot org
2004-09-07 16:34 ` [Bug rtl-optimization/17345] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-09-08  9:39 ` martin at mpa-garching dot mpg dot de
2004-09-08 11:15 ` giovannibajo at libero dot it
2004-09-08 11:21 ` [Bug middle-end/17345] " giovannibajo at libero dot it
2004-09-08 16:55 ` pinskia at gcc dot gnu dot org
2004-09-09  8:46 ` hubicka at ucw dot cz
2004-09-09 14:16 ` [Bug target/17345] " uros at kss-loka dot si
2004-09-09 15:01 ` uros at kss-loka dot si
2004-09-09 15:14 ` hubicka at ucw dot cz
2004-09-09 15:17 ` hubicka at ucw dot cz
2004-09-09 20:14 ` drow at gcc dot gnu dot org
2004-09-10  5:38 ` [Bug target/17345] [4.0 " uros at kss-loka dot si
2004-09-10  7:35 ` hubicka at ucw dot cz
2004-09-10  8:23 ` hubicka at ucw dot cz
2004-09-10 16:11 ` drow at gcc dot gnu dot org
2004-09-11 20:05 ` pinskia at gcc dot gnu dot org
2004-09-13 13:52 ` snyder at fnal dot gov
2004-09-13 14:11 ` uros at kss-loka dot si
2004-09-13 17:34 ` giovannibajo at libero dot it

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