public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/42290]  New: strange 'warning: &#8216;ISRA.2&#8217; may be used uninitialized in this function' in C++0x mode
Date: Fri, 04 Dec 2009 23:52:00 -0000	[thread overview]
Message-ID: <bug-42290-14164@http.gcc.gnu.org/bugzilla/> (raw)

Command line:
g++ -std=c++0x -O2 -Wall -o tmp.o testcase-manual.ii -c
or
g++ -std=c++0x -O2 -Wall -o tmp.o testcase-manual.ii -c


Gives:
testcase-manual.ii: In function &#8216;A::~A(A**, char*)&#8217;:
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function


Tested versions:
r154953 - warns
r154886 - warns
r154830 - silent
r153685 - silent




Full output:
$ /mnt/svn/gcc-trunk/binary-154953-lto/bin/g++ -std=c++0x -O2 -Wall -o tmp.o
testcase-manual.ii -c -v
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-154953-lto/bin/g++
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=c,c++,lto
--prefix=/mnt/svn/gcc-trunk/binary-154953-lto
Thread model: posix
gcc version 4.5.0 20091203 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-std=c++0x' '-O2' '-Wall' '-o' 'tmp.o' '-c' '-v'
'-shared-libgcc' '-mtune=generic'

/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1plus
-fpreprocessed testcase-manual.ii -quiet -dumpbase testcase-manual.ii
-mtune=generic -auxbase-strip tmp.o -O2 -Wall -std=c++0x -version -o
/tmp/ccF5BU5B.s
GNU C++ (GCC) version 4.5.0 20091203 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.5.0 20091203 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.5.0 20091203 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.5.0 20091203 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 4b09d9924550b4f9676aafda3b16134c
testcase-manual.ii: In function &#8216;A::~A(A**, char*)&#8217;:
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
testcase-manual.ii:10:17: warning: &#8216;ISRA.2&#8217; may be used
uninitialized in this function
COLLECT_GCC_OPTIONS='-std=c++0x' '-O2' '-Wall' '-o' 'tmp.o' '-c' '-v'
'-shared-libgcc' '-mtune=generic'
 as -V -Qy -o tmp.o /tmp/ccF5BU5B.s
GNU assembler version 2.20.51.0.3 (x86_64-pc-linux-gnu) using BFD version
(Linux/GNU Binutils) 2.20.51.0.3.20091109
COMPILER_PATH=/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/:/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/:/mnt/svn/gcc-trunk/binary-154953-lto/libexec/gcc/x86_64-unknown-linux-gnu/:/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/:/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/
LIBRARY_PATH=/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/:/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/intel/Compiler/11.1/056/lib/intel64/:/mnt/svn/gcc-trunk/binary-154953-lto/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-std=c++0x' '-O2' '-Wall' '-o' 'tmp.o' '-c' '-v'
'-shared-libgcc' '-mtune=generic'


-- 
           Summary: strange 'warning: &#8216;ISRA.2&#8217; may be used
                    uninitialized in this function' in C++0x mode
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42290


             reply	other threads:[~2009-12-04 23:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04 23:52 zsojka at seznam dot cz [this message]
2009-12-04 23:53 ` [Bug c++/42290] " zsojka at seznam dot cz
2009-12-04 23:54 ` [Bug middle-end/42290] " pinskia at gcc dot gnu dot org
2009-12-05  0:16 ` [Bug middle-end/42290] strange 'warning: "ISRA.2" may be used uninitialized in this function' zsojka at seznam dot cz
2009-12-26 10:51 ` zsojka at seznam dot cz
2009-12-26 11:23 ` zsojka at seznam dot cz
2009-12-30 16:29 ` manu at gcc dot gnu dot org
2010-02-04  3:01 ` zsojka at seznam dot cz
2010-02-04 11:26 ` manu at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-42290-14164@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).