public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40224]  New: g++ Accepting wrong code
@ 2009-05-22 14:57 sergei_lus at yahoo dot com
  2009-08-25 15:52 ` [Bug c++/40224] [4.3/4.4/4.5 regression] g++ Accepting invalid code bangerth at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sergei_lus at yahoo dot com @ 2009-05-22 14:57 UTC (permalink / raw)
  To: gcc-bugs

g++ -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-threads=posix
--prefix=/prj/dsp/qdsp6_aus/users/slarin/x86_gcc_4.4/bin
--enable-languages=c,c++ --disable-checking
Thread model: posix
gcc version 4.4.0 (GCC)

Accepts the following code:

class X {
public:
        enum enumX { a=100 };
};

int main(void)
{
        X x;

        (void) &x.a;    // should not compile
}

It should not. This version:

gcc -v
Reading specs from /usr/***specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
--disable-checking --libdir=/usr/lib64 --enable-libgcj
--with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib64
--with-system-zlib --enable-shared --enable-__cxa_atexit x86_64-suse-linux
Thread model: posix
gcc version 3.3.3 (SuSE Linux)

Correctly produces the following error:

fe1.cc: In function `int main()':
fe1.cc:12: error: non-lvalue in unary `&'


-- 
           Summary: g++ Accepting wrong code
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sergei_lus at yahoo dot com


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/40224] [4.3/4.4/4.5 regression] g++ Accepting invalid code
  2009-05-22 14:57 [Bug c++/40224] New: g++ Accepting wrong code sergei_lus at yahoo dot com
@ 2009-08-25 15:52 ` bangerth at gmail dot com
  2009-08-25 15:52 ` jsm28 at gcc dot gnu dot org
  2009-08-31 16:46 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at gmail dot com @ 2009-08-25 15:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bangerth at gmail dot com  2009-08-25 15:49 -------
Confirmed.


-- 

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at gmail dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-25 15:49:33
               date|                            |
            Summary|g++ Accepting invalid code  |[4.3/4.4/4.5 regression] g++
                   |                            |Accepting invalid code


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/40224] [4.3/4.4/4.5 regression] g++ Accepting invalid code
  2009-05-22 14:57 [Bug c++/40224] New: g++ Accepting wrong code sergei_lus at yahoo dot com
  2009-08-25 15:52 ` [Bug c++/40224] [4.3/4.4/4.5 regression] g++ Accepting invalid code bangerth at gmail dot com
@ 2009-08-25 15:52 ` jsm28 at gcc dot gnu dot org
  2009-08-31 16:46 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-08-25 15:52 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.5


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/40224] [4.3/4.4/4.5 regression] g++ Accepting invalid code
  2009-05-22 14:57 [Bug c++/40224] New: g++ Accepting wrong code sergei_lus at yahoo dot com
  2009-08-25 15:52 ` [Bug c++/40224] [4.3/4.4/4.5 regression] g++ Accepting invalid code bangerth at gmail dot com
  2009-08-25 15:52 ` jsm28 at gcc dot gnu dot org
@ 2009-08-31 16:46 ` jakub at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-08-31 16:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2009-08-31 16:45 -------


*** This bug has been marked as a duplicate of 41131 ***


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-31 16:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-22 14:57 [Bug c++/40224] New: g++ Accepting wrong code sergei_lus at yahoo dot com
2009-08-25 15:52 ` [Bug c++/40224] [4.3/4.4/4.5 regression] g++ Accepting invalid code bangerth at gmail dot com
2009-08-25 15:52 ` jsm28 at gcc dot gnu dot org
2009-08-31 16:46 ` jakub at gcc dot gnu dot org

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).