#217075 - [PR 13070] [3.3 / 3.4 regression] -Wformat option ignored in g++ (original) (raw)

Debian Bug report logs - #217075

[PR 13070] [3.3 / 3.4 regression] -Wformat option ignored in g++

version graph

Display info messages


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GCC maintainers <debian-gcc@lists.debian.org>:
Bug#217075; Package g++-3.3. (full text, mbox, link).


Acknowledgement sent to Egon Eckert <egon@heaven.industries.cz>:
New Bug report received and forwarded. Copy sent to Debian GCC maintainers <debian-gcc@lists.debian.org>. (full text, mbox, link).


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

Package: g++-3.3 Version: 3.3.2-1 Severity: normal

I'm confused about the -Wformat behaviour in newer g++ 3.3 releases. It works for plain C, but seems to be ignored for C++ (in some cases at least). Look at this:

egon@tuscan:~$ cat testik.cc #include <stdio.h>

int main() { printf("%d\n", 1, 1); } egon@tuscan:$ g++-3.2 -Wformat testik.cc testik.cc: In function `int main()': testik.cc:5: warning: too many arguments for format egon@tuscan:$ g++-3.3 -Wformat testik.cc egon@tuscan:~$

As in 3.2, in 3.0 and 2.95 it used to work as expected. Unfortunately I'm not able to say if it's Debian-specific problem, or perhaps libc6-dev's or gcc's upstream... My system is +- current i386 sid.

Thanks,

-- Egon Eckert, Heaven Industries, s.r.o. E-mail: egon@heaven.industries.cz


**Changed Bug title.**Request was from Matthias Klose <doko@net.local>to control@bugs.debian.org. (full text, mbox, link).


Tags added: upstreamRequest was from Matthias Klose <doko@net.local>to control@bugs.debian.org. (full text, mbox, link).


Information stored:
Bug#217075; Package g++-3.3. (full text, mbox, link).


Acknowledgement sent to doko@debian.org:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #16 received at 217075-quiet@bugs.debian.org (full text, mbox, reply):

submitted Debian report #217075 to gcc-gnats as PR 13070

http://gcc.gnu.org/PR13070

forwarded 217075 http://gcc.gnu.org/PR13070 retitle 217075 [PR 13070] [3.3 / 3.4 regression] -Wformat option ignored in g++ tags 217075 + upstream thanks


Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Egon Eckert <egon@heaven.industries.cz>:
Bug acknowledged by developer. (full text, mbox, link).


Message #21 received at 217075-close@bugs.debian.org (full text, mbox, reply):

Source: gcc-3.3 Source-Version: 1:3.3.3ds1-0pre1

We believe that the bug you reported is fixed in the latest version of gcc-3.3, which is due to be installed in the Debian FTP archive:

cpp-3.3-doc_3.3.3-0pre1_all.deb to pool/main/g/gcc-3.3/cpp-3.3-doc_3.3.3-0pre1_all.deb cpp-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/cpp-3.3_3.3.3-0pre1_i386.deb fastjar_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/fastjar_3.3.3-0pre1_i386.deb fixincludes_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/fixincludes_3.3.3-0pre1_i386.deb g++-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/g++-3.3_3.3.3-0pre1_i386.deb g77-3.3-doc_3.3.3-0pre1_all.deb to pool/main/g/gcc-3.3/g77-3.3-doc_3.3.3-0pre1_all.deb g77-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/g77-3.3_3.3.3-0pre1_i386.deb gcc-3.3-base_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/gcc-3.3-base_3.3.3-0pre1_i386.deb gcc-3.3-doc_3.3.3-0pre1_all.deb to pool/main/g/gcc-3.3/gcc-3.3-doc_3.3.3-0pre1_all.deb gcc-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/gcc-3.3_3.3.3-0pre1_i386.deb gcc-3.3_3.3.3ds1-0pre1.diff.gz to pool/main/g/gcc-3.3/gcc-3.3_3.3.3ds1-0pre1.diff.gz gcc-3.3_3.3.3ds1-0pre1.dsc to pool/main/g/gcc-3.3/gcc-3.3_3.3.3ds1-0pre1.dsc gcc-3.3_3.3.3ds1.orig.tar.gz to pool/main/g/gcc-3.3/gcc-3.3_3.3.3ds1.orig.tar.gz gcj-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/gcj-3.3_3.3.3-0pre1_i386.deb gij-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/gij-3.3_3.3.3-0pre1_i386.deb gnat-3.3-doc_3.3.3-0pre1_all.deb to pool/main/g/gcc-3.3/gnat-3.3-doc_3.3.3-0pre1_all.deb gnat-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/gnat-3.3_3.3.3-0pre1_i386.deb gobjc-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/gobjc-3.3_3.3.3-0pre1_i386.deb gpc-2.1-3.3-doc_3.3.3.20030830-0pre1_all.deb to pool/main/g/gcc-3.3/gpc-2.1-3.3-doc_3.3.3.20030830-0pre1_all.deb gpc-2.1-3.3_3.3.3.20030830-0pre1_i386.deb to pool/main/g/gcc-3.3/gpc-2.1-3.3_3.3.3.20030830-0pre1_i386.deb libffi2-dev_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libffi2-dev_3.3.3-0pre1_i386.deb libffi2_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libffi2_3.3.3-0pre1_i386.deb libg2c0_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libg2c0_3.3.3-0pre1_i386.deb libgcc1_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libgcc1_3.3.3-0pre1_i386.deb libgcj-common_3.3.3-0pre1_all.deb to pool/main/g/gcc-3.3/libgcj-common_3.3.3-0pre1_all.deb libgcj4-dev_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libgcj4-dev_3.3.3-0pre1_i386.deb libgcj4_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libgcj4_3.3.3-0pre1_i386.deb libobjc1_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libobjc1_3.3.3-0pre1_i386.deb libstdc++5-3.3-dbg_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libstdc++5-3.3-dbg_3.3.3-0pre1_i386.deb libstdc++5-3.3-dev_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libstdc++5-3.3-dev_3.3.3-0pre1_i386.deb libstdc++5-3.3-doc_3.3.3-0pre1_all.deb to pool/main/g/gcc-3.3/libstdc++5-3.3-doc_3.3.3-0pre1_all.deb libstdc++5-3.3-pic_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libstdc++5-3.3-pic_3.3.3-0pre1_i386.deb libstdc++5_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/libstdc++5_3.3.3-0pre1_i386.deb protoize_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/protoize_3.3.3-0pre1_i386.deb treelang-3.3_3.3.3-0pre1_i386.deb to pool/main/g/gcc-3.3/treelang-3.3_3.3.3-0pre1_i386.deb

A summary of the changes between this version and the previous one is attached.

Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 217075@bugs.debian.org, and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software pp. Matthias Klose doko@debian.org (supplier of updated gcc-3.3 package)

(This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@debian.org)

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Format: 1.7 Date: Mon, 29 Dec 2003 10:36:29 +0100 Source: gcc-3.3 Binary: libgnat3.15 gcc-3.3-nof gcc-3.3 libobjc1 libgcc1 lib64g2c0 libstdc++5-3.3-doc libgcj4 gpc-2.1-3.3-doc libstdc++5 cpp-3.3-doc protoize gcc-3.3-hppa64 cpp-3.3 libstdc++5-3.3-dbg g77-3.3-doc gpc-2.1-3.3 g77-3.3 libgcj4-dev gcc-3.3-doc lib64objc1 lib64ffi2 libstdc++5-3.3-dev libffi2-dev gcj-3.3 libgcj-common gobjc-3.3 lib64stdc++5 gcc-3.3-soft-float lib64gcj4 treelang-3.3 libg2c0-dev lib64gcc1 fastjar lib64gnat3.15 fixincludes libg2c0 gij-3.3 libstdc++5-3.3-pic gcc-3.3-base g++-3.3 gnat-3.3 libffi2 gnat-3.3-doc Architecture: source i386 all Version: 1:3.3.3ds1-0pre1 Distribution: unstable Urgency: low Maintainer: Debian GCC maintainers debian-gcc@lists.debian.org Changed-By: Matthias Klose doko@debian.org Description: cpp-3.3 - The GNU C preprocessor cpp-3.3-doc - Documentation for the GNU C preprocessor (cpp) fastjar - Jar creation utility fixincludes - Fix non-ANSI header files g++-3.3 - The GNU C++ compiler g77-3.3 - The GNU Fortran 77 compiler g77-3.3-doc - Documentation for the GNU Fortran compiler (g77) gcc-3.3 - The GNU C compiler gcc-3.3-base - The GNU Compiler Collection (base package) gcc-3.3-doc - Documentation for the GNU compilers (gcc, gobjc, g++) gcj-3.3 - The GNU compiler for Java(TM) gij-3.3 - The GNU Java bytecode interpreter gnat-3.3 - The GNU Ada compiler gnat-3.3-doc - Documentation for the GNU Ada compiler (gnat) gobjc-3.3 - The GNU Objective-C compiler gpc-2.1-3.3 - The GNU Pascal compiler gpc-2.1-3.3-doc - Documentation for the GNU Pascal compiler (gpc) libffi2 - Foreign Function Interface library runtime libffi2-dev - Foreign Function Interface library (development files) libg2c0 - Runtime library for GNU Fortran 77 applications libgcc1 - GCC support library libgcj-common - Java runtime library (common files) libgcj4 - Java runtime library for use with gcj libgcj4-dev - Java development headers and static library for use with gcj libobjc1 - Runtime library for GNU Objective-C applications libstdc++5 - The GNU Standard C++ Library v3 libstdc++5-3.3-dbg - The GNU Standard C++ Library v3 (debugging files) libstdc++5-3.3-dev - The GNU Standard C++ Library v3 (development files) libstdc++5-3.3-doc - The GNU Standard C++ Library v3 (documentation files) libstdc++5-3.3-pic - The GNU Standard C++ Library v3 (shared library subset kit) protoize - Create/remove ANSI prototypes from C code treelang-3.3 - The GNU Treelang compiler Closes: 195264 217075 224593 224848 224875 Changes: gcc-3.3 (1:3.3.3ds1-0pre1) unstable; urgency=low .

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/8DgUStlRaw+TLJwRAsjWAJ45VwlIW3j7TZBKpZLC7OBHa5r8zgCdFdef G0TlRk6Le5oKwNaJJkhcCzA= =KXx2 -----END PGP SIGNATURE-----


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified:Fri Apr 10 07:25:50 2026; Machine Name:bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.