Indiana Unversity logo[ConceptGCC]

ConceptGCC :

cassert

From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2006-12-02 11:15:20


Hi,
        
I think there is a problem with cassert. The attached file generates an
internal compiler error.
        
Karl
        
        
test5.cpp: In function ‘void foo(X&, const Y&)’:
test5.cpp:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.generic-programming.org/software/ConceptGCC> for
instructions.
        

Here is the cpp file:

#include <cassert>
#include <concepts>
        
template <typename X, typename Y>
  where std::EqualityComparable<X,Y>
void foo( X& x, Y const& y ) {
  assert( x==y ) ;
} // foo()
        
int main () {
  return 0 ;
}