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

version graph

Package: g++-4.3; Maintainer for g++-4.3 is Debian GCC Maintainers <>;

Reported by: "brian m. carlson" <>

Date: Tue, 11 Dec 2007 23:36:01 UTC

Severity: normal

Found in version gcc-4.3/4.3-20071130-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Debian GCC Maintainers <>:
Bug#455816; Package g++-4.3. Full text and rfc822 format available.

Acknowledgement sent to "brian m. carlson" <>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <>. Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: "brian m. carlson" <>
To: Debian Bug Tracking System <>
Subject: g++-4.3: -std=c++0x -E -dM does not work in C++ mode
Date: Tue, 11 Dec 2007 23:34:33 +0000
[Message part 1 (text/plain, inline)]
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_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 | | My opinion only
a typesetting engine:
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
[signature.asc (application/pgp-signature, inline)]

Changed Bug submitter to '"brian m. carlson" <>' from '"brian m. carlson" <>' Request was from "brian m. carlson" <> to (Thu, 03 Feb 2011 20:51:21 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Fri Apr 18 16:00:00 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.