-conftest.cpp: In function 'int f(s)':
-conftest.cpp:45:41: error: ISO C++ forbids declaration of 'y' with no type [-fpermissive]
- struct s { int a; }; int f(s x) { auto &y = x; return y.a; }
- ^
-conftest.cpp:45:45: error: invalid initialization of reference of type 'int&' from expression of type 's'
- struct s { int a; }; int f(s x) { auto &y = x; return y.a; }
- ^
-conftest.cpp:45:57: error: request for member 'a' in 'y', which is of non-class type 'int'
- struct s { int a; }; int f(s x) { auto &y = x; return y.a; }
- ^
-configure:4985: $? = 1
-configure: failed program was:
-| /* confdefs.h */
-| #define PACKAGE_NAME "masstree-beta"
-| #define PACKAGE_TARNAME "masstree-beta"
-| #define PACKAGE_VERSION "0.1"
-| #define PACKAGE_STRING "masstree-beta 0.1"
-| #define PACKAGE_BUGREPORT ""
-| #define PACKAGE_URL ""
-| #define WORDS_BIGENDIAN_SET 1
-| #define STDC_HEADERS 1
-| #define HAVE_SYS_TYPES_H 1
-| #define HAVE_SYS_STAT_H 1
-| #define HAVE_STDLIB_H 1
-| #define HAVE_STRING_H 1
-| #define HAVE_MEMORY_H 1
-| #define HAVE_STRINGS_H 1
-| #define HAVE_INTTYPES_H 1
-| #define HAVE_STDINT_H 1
-| #define HAVE_UNISTD_H 1
-| #define HAVE_SYS_EPOLL_H 1
-| #define HAVE_NUMA_H 1
-| #define HAVE_LIBNUMA 1
-| #define HAVE___BUILTIN_CLZ 1
-| #define HAVE___BUILTIN_CLZL 1
-| #define HAVE___BUILTIN_CLZLL 1
-| #define HAVE___BUILTIN_CTZ 1
-| #define HAVE___BUILTIN_CTZL 1
-| #define HAVE___BUILTIN_CTZLL 1
-| #define HAVE___SYNC_SYNCHRONIZE 1
-| #define HAVE___SYNC_FETCH_AND_ADD 1
-| #define HAVE___SYNC_ADD_AND_FETCH 1
-| #define HAVE___SYNC_FETCH_AND_ADD_8 1
-| #define HAVE___SYNC_ADD_AND_FETCH_8 1
-| #define HAVE___SYNC_FETCH_AND_OR 1
-| #define HAVE___SYNC_OR_AND_FETCH 1
-| #define HAVE___SYNC_FETCH_AND_OR_8 1
-| #define HAVE___SYNC_OR_AND_FETCH_8 1
-| #define HAVE___SYNC_BOOL_COMPARE_AND_SWAP 1
-| #define HAVE___SYNC_BOOL_COMPARE_AND_SWAP_8 1
-| #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
-| #define HAVE___SYNC_VAL_COMPARE_AND_SWAP_8 1
-| #define HAVE___SYNC_LOCK_TEST_AND_SET 1
-| #define HAVE___SYNC_LOCK_TEST_AND_SET_VAL 1
-| #define HAVE___SYNC_LOCK_RELEASE_SET 1
-| /* end confdefs.h. */
-| struct s { int a; }; int f(s x) { auto &y = x; return y.a; }
-| int
-| main ()
-| {
-|
-| ;
-| return 0;
-| }
-configure:4992: result: no
-configure:4996: checking whether the C++ compiler with -std=gnu++0x understands 'auto'
-configure:5009: g++ -std=gnu++0x -c -g -O2 conftest.cpp >&5
-configure:5009: $? = 0
-configure:5015: result: yes