public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54053] New: g++ accepts (invalid?) ""0; expression.
@ 2012-07-20 14:41 pluto at agmk dot net
  2012-07-20 14:48 ` [Bug c++/54053] [4.7 Regression] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pluto at agmk dot net @ 2012-07-20 14:41 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54053
           Summary: g++ accepts (invalid?) ""0; expression.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pluto@agmk.net


g++ -std=c++11 compiles following code w/o errors.

#include <iostream>
int main()
{
        std::cout << ""0;
}

while comeau/clang reports syntax error:

t.cpp:5:17: error: expected ';' after expression
        std::cout << ""0;
                       ^
                       ;


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

* [Bug c++/54053] [4.7 Regression] g++ accepts (invalid?) ""0; expression.
  2012-07-20 14:41 [Bug c++/54053] New: g++ accepts (invalid?) ""0; expression pluto at agmk dot net
@ 2012-07-20 14:48 ` redi at gcc dot gnu.org
  2012-07-23  8:16 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-20 14:48 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-07-20
      Known to work|                            |4.6.3, 4.8.0
            Summary|g++ accepts (invalid?) ""0; |[4.7 Regression] g++
                   |expression.                 |accepts (invalid?) ""0;
                   |                            |expression.
     Ever Confirmed|0                           |1
      Known to fail|                            |4.7.1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-20 14:47:33 UTC ---
Trunk rejects it, with or without -std=c++11


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

* [Bug c++/54053] [4.7 Regression] g++ accepts (invalid?) ""0; expression.
  2012-07-20 14:41 [Bug c++/54053] New: g++ accepts (invalid?) ""0; expression pluto at agmk dot net
  2012-07-20 14:48 ` [Bug c++/54053] [4.7 Regression] " redi at gcc dot gnu.org
@ 2012-07-23  8:16 ` rguenth at gcc dot gnu.org
  2012-08-14 15:58 ` jakub at gcc dot gnu.org
  2012-09-07 10:08 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-23  8:16 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.2


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

* [Bug c++/54053] [4.7 Regression] g++ accepts (invalid?) ""0; expression.
  2012-07-20 14:41 [Bug c++/54053] New: g++ accepts (invalid?) ""0; expression pluto at agmk dot net
  2012-07-20 14:48 ` [Bug c++/54053] [4.7 Regression] " redi at gcc dot gnu.org
  2012-07-23  8:16 ` rguenth at gcc dot gnu.org
@ 2012-08-14 15:58 ` jakub at gcc dot gnu.org
  2012-09-07 10:08 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-08-14 15:58 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-08-14 15:57:34 UTC ---
Fixed on the trunk with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186909


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

* [Bug c++/54053] [4.7 Regression] g++ accepts (invalid?) ""0; expression.
  2012-07-20 14:41 [Bug c++/54053] New: g++ accepts (invalid?) ""0; expression pluto at agmk dot net
                   ` (2 preceding siblings ...)
  2012-08-14 15:58 ` jakub at gcc dot gnu.org
@ 2012-09-07 10:08 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-07 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.7.2                       |4.8.0

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-07 10:08:03 UTC ---
Fixed on trunk.


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

end of thread, other threads:[~2012-09-07 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-20 14:41 [Bug c++/54053] New: g++ accepts (invalid?) ""0; expression pluto at agmk dot net
2012-07-20 14:48 ` [Bug c++/54053] [4.7 Regression] " redi at gcc dot gnu.org
2012-07-23  8:16 ` rguenth at gcc dot gnu.org
2012-08-14 15:58 ` jakub at gcc dot gnu.org
2012-09-07 10:08 ` rguenth at gcc dot gnu.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).