This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
compiler error on legal code
- To: "'bug-gcc at gnu dot org'" <bug-gcc at gnu dot org>
- Subject: compiler error on legal code
- From: "Elverson, Bryan" <Bryan dot Elverson at compaq dot com>
- Date: Wed, 12 Jul 2000 16:26:05 -0400
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.