$ g++ -v
Using built-in specs.
Target: i386-unknown-netbsdelf3.0.
/.../
Thread model: posix
gcc version 4.0.2

$cat main.cc
struct Coord {};
template <typename E> class Array {};
class Env;
class           Obstacle
{
  Obstacle(const struct Coord& pos, Env* env)
  {
    (*env)(pos)->obstacle_set(this);
  }
};


$ g++ main.cc
main.cc: In constructor 'Obstacle::Obstacle(Env*)':
main.cc:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: internal segfault with operator ( ) on non-integer
                    argument
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mickael dot labau at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26680

Reply via email to