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]

compiler error on legal code


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.



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