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

Submitted by:  None
Submitted on:  Sat 13 Nov 2010 07:29:50 PM UTC  
 
Priority: 5 - NormalStatus: Done
Assigned to: Peter Simons <simons>Originator Email: -unavailable-
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 18 Dec 2010 05:24:09 PM UTCsimonsOpen/ClosedOpen=>Closed
    Sat 18 Dec 2010 05:23:47 PM UTCsimonsStatusReady For Test=>Done
    Thu 18 Nov 2010 02:43:05 PM UTCsimonsStatusNone=>Ready For Test
      Assigned toNone=>simons
      Originator Email=>-unavailable-
      Carbon-Copy-=>Added benjamin kosnik
    Thu 18 Nov 2010 02:07:06 PM UTCNoneAttached File-=>Added 0001-ax_cxx_compile_stdcxx_0x-stopped-working-since-GCC-4.patch, #22050

    Back to the top


    Powered by Savane 3.1-cleanup