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 <debian-gcc@lists.debian.org>;

Reported by: "brian m. carlson" <sandals@crustytoothpaste.net>

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-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#455816; Package g++-4.3. Full text and rfc822 format available.

Acknowledgement sent to "brian m. carlson" <sandals@crustytoothpaste.ath.cx>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "brian m. carlson" <sandals@crustytoothpaste.ath.cx>
To: Debian Bug Tracking System <submit@bugs.debian.org>
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_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
[signature.asc (application/pgp-signature, inline)]

Changed Bug submitter to '"brian m. carlson" <sandals@crustytoothpaste.net>' from '"brian m. carlson" <sandals@crustytoothpaste.ath.cx>' Request was from "brian m. carlson" <sandals@crustytoothpaste.net> to control@bugs.debian.org. (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 <owner@bugs.debian.org>. Last modified: Fri Apr 18 16:00:00 2014; Machine Name: buxtehude.debian.org

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