autoconf-archive-maintainers | |
[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #7387] AC_CXX_COMPILE_STDCXX_0X does not work with G++ 4.5
From: |
anonymous |
Subject: |
[patch #7387] AC_CXX_COMPILE_STDCXX_0X does not work with G++ 4.5 |
Date: |
Sat, 13 Nov 2010 19:29:51 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.8 SUSE/7.0.528.0 (KHTML, like Gecko) Chrome/7.0.528.0 Safari/534.8 |
URL:
<http://savannah.gnu.org/patch/?7387>
Summary: AC_CXX_COMPILE_STDCXX_0X does not work with G++ 4.5
Project: GNU Autoconf Archive
Submitted by: None
Submitted on: sáb 13 nov 2010 19:29:50 UTC
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
(didnt found a bug tracker)
the macro AC_CXX_COMPILE_STDCXX_0X fails with GCC 4.5/autoconf 2.65 or later
or later, but works with GCC 4.4.x and autoconf 2.63
relevant config.log bits
configure:5004: checking if g++ supports C++0x features with -std=c++0x
configure:5043: g++ -c -Wall -march=native -O2 -g -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -std=c++0x conftest.cpp >&5
conftest.cpp:40:23: error: invalid initialization of reference of type
'check_type&&' from expression of type 'check_type'
configure:5043: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pbzip2"
| #define PACKAGE_TARNAME "pbzip2"
| #define PACKAGE_VERSION "1.1.1"
| #define PACKAGE_STRING "pbzip2 1.1.1"
| #define PACKAGE_BUGREPORT "address@hidden"
| #define PACKAGE_URL ""
| #define PACKAGE "pbzip2"
| #define VERSION "1.1.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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h. */
|
| template <typename T>
| struct check
| {
| static_assert(sizeof(int) <= sizeof(T), "not big enough");
| };
|
| typedef check<check<bool>> right_angle_brackets;
|
| int a;
| decltype(a) b;
|
| typedef check<int> check_type;
| check_type c;
| check_type&& cr = c;
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5058: result: no
configure:5061: checking if g++ supports C++0x features with -std=gnu++0x
configure:5100: g++ -c -Wall -march=native -O2 -g -m64 -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -std=gnu++0x conftest.cpp >&5
conftest.cpp:40:23: error: invalid initialization of reference of type
'check_type&&' from expression of type 'check_type'
configure:5100: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pbzip2"
| #define PACKAGE_TARNAME "pbzip2"
| #define PACKAGE_VERSION "1.1.1"
| #define PACKAGE_STRING "pbzip2 1.1.1"
| #define PACKAGE_BUGREPORT "address@hidden"
| #define PACKAGE_URL ""
| #define PACKAGE "pbzip2"
| #define VERSION "1.1.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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /* end confdefs.h. */
|
| template <typename T>
| struct check
| {
| static_assert(sizeof(int) <= sizeof(T), "not big enough");
| };
|
| typedef check<check<bool>> right_angle_brackets;
|
| int a;
| decltype(a) b;
|
| typedef check<int> check_type;
| check_type c;
| check_type&& cr = c;
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5115: result: no
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?7387>
_______________________________________________
Mensaje enviado vía/por Savannah
http://savannah.gnu.org/
- [patch #7387] AC_CXX_COMPILE_STDCXX_0X does not work with G++ 4.5,
anonymous <=