compiler error on legal code

Elverson, Bryan Bryan.Elverson@compaq.com
Wed Jul 12 13:45:00 GMT 2000


gcc -v
gcc version 2.95.2 19991024 (release)

code:
#include <iostream>

#include <string>
#include <map>

class Junk 
{
public:
  map<string, string, less<string> > m_map;
};

void main()
{
  Junk a;

  a.m_map["January"] = "cold";
  if( a.m_map.size() > 1 )
    cout << "yo!\n";
}

gcc command args:
none

os: Tru64 UNIX v 4.0d
platform: DEC Alpha EV56

configuration:
--enable-threads --enable-version-specific-runtime-libs
Compiler was built in the standard way; no source code modifications made.

Problem:
When gcc compiles the above program, the following error occurs:
as0: Warning: maptest.cpp, line 6: Line too long
      .align [junk omitted]

Help, please!
Thanks,

Bryan Elverson
Compaq Computer Corp.




More information about the Gcc-bugs mailing list