patchGNU Autoconf Archive - Patches: patch #7387, AC_CXX_COMPILE_STDCXX_0X does not...

 
 

patch #7387: AC_CXX_COMPILE_STDCXX_0X does not work with G++ 4.5

Submitter:  None
Submitted:  Sat 13 Nov 2010 07:29:50 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 18 Nov 2010 02:43:05 PM UTC, comment #1: 

Hi Christian,

your patch has been applied in 35d0c3fd5b4b607ef6521cb95eb4fc78c5d9e670. Thank you very much for submitting this bug fix!

Take care,
Peter

Peter Simons <simons>
Group administrator
Sat 13 Nov 2010 07:29:50 PM UTC, original submission:  

(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 "pbzip2@compression.ca"
| #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 "pbzip2@compression.ca"
| #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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by simons (Original author of the macro)
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-18 simons Open/ClosedOpen Closed
    2010-12-18 simons StatusReady For Test Done
    2010-11-18 simons StatusNone Ready For Test
        Assigned toNone simons
        Originator Email -email is unavailable-
        Carbon-Copy- Added benjamin kosnik <bkoz@redhat.com>
    2010-11-18 None Attached File- Added 0001-ax_cxx_compile_stdcxx_0x-stopped-working-since-GCC-4.patch, #22050

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code