This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Internal compiler error


Included is a short program that produces an internal compiler
error with egcs-970907 on a FreeBSD-current machine if
compiled optimized.  If -O flags are left off, it compiles.

  While purning the program down from a few thousand lines...
often this message was given:

tt6.C: In function `int main(int, char **)':
tt6.C:22: internal error--insn does not satisfy its constraints:
(insn 1128 828 829 (set (reg:SI 4 %esi)
        (reg/v:SI 63)) 52 {movsi+1} (nil)
    (nil))
tt6.C:22: confused by earlier errors, bailing out




#include <vector>

#include <strstream.h>

/*----------------------------------------*/

struct connection_t {
  connection_t() {}
};

vector<connection_t> connections;    

/*----------------------------------------*/

int
main() {
  ostrstream str;

  connections.insert(connections.end(), connection_t());
  
  return 0;
}

/*----------------------------------------*/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]