Indiana Unversity logo[ConceptGCC]

ConceptGCC :

Re: Need some help -- can't find the error in this code.

From: Daniel Lincke (daniel.lincke_at_[hidden])
Date: 2007-09-19 10:59:46


Hi,

things are even worse :( ...

look at this code:

#include <concepts>

#include <stdlib.h>
#include <stdio.h> // file I/O streams
#include <iostream>

using namespace std;

concept TEST<class T> {
void call();
};

template<class T>
requires TEST<T>, DefaultConstructible<T>
void test () {
T t;
t.call();
}

int main (int argc, char *argv[]) {
}

leading to the error:
/opt/conceptgcc-4.3/bin/conceptg++ -c -o main.o main.cpp
main.cpp: In function ‘void test()’:
main.cpp:19: error: ‘struct T’ has no member named ‘call’
make: *** [main.o] Fehler 1

:confused:
No idea what's going wrong here ...
(Might this be a problem with the installation of conceptgcc?)

Best, dl