[Bug c++/62257] New: issue with tr1/functional header

wangn at ca dot ibm.com gcc-bugzilla@gcc.gnu.org
Mon Aug 25 17:23:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62257

            Bug ID: 62257
           Summary: issue with tr1/functional header
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wangn at ca dot ibm.com

some of perennial test cases failed because problem on tr1/functional header
file. 

source file:
$ cat t.cpp
#include <tr1/functional>
struct T { typedef int result_type; };

std::tr1::result_of<T>::type a;

how to reproduce:

g++ -c t.cpp

actual output:

t.cpp:4:1: error: âtypeâ in âclass std::tr1::result_of<T>â does not name a type
 std::tr1::result_of<T>::type a;
 ^
expected output:

compile clean


More information about the Gcc-bugs mailing list