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]

gcc 3.0.1 bug (second try)


I just downloaded and installed gcc 3.0.1 on my Solaris 2.8 system,
and I came across this strange bug.  I have reduced the source code
to a very small piece that still re-produce the error.  This code
compiles fine using gcc 2.95.3.  Here is the demo:

mars%
mars% uname -a
SunOS mars 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-250
mars%
mars% g++ -v
Reading specs from
/net/mars/exp/opt/gcc3/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/specs
Configured with: ../gcc-3.0.1/configure --prefix=/net/mars/exp/opt/gcc3
Thread model: posix
gcc version 3.0.1
mars%
mars% cat test.cc
namespace geo {
    class Point {
    public:
        int x, y;
    };
}

using geo::Point;

namespace {
    int limit = 16;
    Point *point = new Point[limit];

    void writeLine() {}
}
mars%
mars% g++ -Wall -g -c test.cc
test.cc: In function `void
__static_initialization_and_destruction_0(int,
   int)':
test.cc:12: Internal compiler error in find_function_data, at
function.c:328
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
mars%
mars% /exp/opt/gcc2/bin/g++ -v
Reading specs from
/net/mars/exp/opt/gcc2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)
mars%
mars% /exp/opt/gcc2/bin/g++ -Wall -g -c test.cc
mars%

Please try to re-produce on your site.  Thanks!

-- Xiaoyi


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