[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#455816: g++-4.3: -std=c++0x -E -dM does not work in C++ mode



Package: g++-4.3
Version: 4.3-20071130-1
Severity: normal

lakeview ok % g++-4.3 -std=c++0x -E -dM - </dev/null | sort | grep GXX
cc1: warning: command line option "-std=c++0x" is valid for C++/ObjC++ but not for C
#define __GXX_ABI_VERSION 1002
lakeview ok % g++-4.3 -x c++ -std=c++0x -E -dM - </dev/null | sort | grep GXX
#define __GXX_ABI_VERSION 1002
#define __GXX_EXPERIMENTAL_CXX0X__ 1
#define __GXX_WEAK__ 1

I want to see the macros that are defined in C++ mode, because C++ mode defines certain other macros (such as _GNU_SOURCE) that C mode does not. Note that it works if I use -x c++, but I shouldn't have to, since I explicitly specified C++ mode by invoking g++. It shouldn't be necessary to repeat myself.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-rc4 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages g++-4.3 depends on:
ii  gcc-4.3                   4.3-20071130-1 The GNU C compiler
ii gcc-4.3-base 4.3-20071130-1 The GNU Compiler Collection (base ii libc6 2.7-4 GNU C Library: Shared libraries
ii  libgmp3c2                 2:4.2.2+dfsg-1 Multiprecision arithmetic library
ii libmpfr1ldbl 2.3.0.dfsg.1-2 multiple precision floating-point ii libstdc++6-4.3-dev 4.3-20071130-1 The GNU Standard C++ Library v3 (d

g++-4.3 recommends no packages.

-- no debconf information

--
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
a typesetting engine: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature


Reply to: