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]
Other format: [Raw text]

[Bug c++/11283] New: [3.4 regression]


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression]
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs@gcc.gnu.org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu

This was reported on gcc-bugs by James W. McKelvey (mckelvey at maskull com),
but I can't find it in the database. According to James, it also occurs on
Solaris 2.7.1. It does not occur with 3.3 or earlier.

Here's an unpreprocessed test case:

#include <vector>

namespace PatternMaster {
    struct SymbolTable {
	static const bool EMPTY_BOOLEAN = false;
    };
}

bool evaluate(std::vector<bool> value) {
    const unsigned long offset = 23;
    return (offset < value.size()
	    ? value[offset]
	    : PatternMaster::SymbolTable::EMPTY_BOOLEAN);
}

% g++ --version             
g++ (GCC) 3.4 20030614 (experimental)
% g++ -c bugs.cc            
bugs.cc: In function `bool evaluate(std::vector<bool, std::allocator<bool> >)':
bugs.cc:13: internal compiler error: in build_conditional_expr, at cp/call.c:
   3349
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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