public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/60481] New: [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type"
@ 2014-03-10  9:46 d.g.gorbachev at gmail dot com
  2014-03-10 10:20 ` [Bug target/60481] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2014-03-10  9:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60481
           Summary: [4.9 Regression] Missing diagnostic "ISO C++ forbids
                    declaration of 'foo' with no type"
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: d.g.gorbachev at gmail dot com
            Target: *-*-mingw32

$ cat > foo.C
foo()
{
  return 0;
}
^D
$ i686-w64-mingw32-g++-4.9.0 -S foo.C
$ i686-pc-linux-gnu-g++-4.9.0 -S foo.C
foo.C:1:5: error: ISO C++ forbids declaration of 'foo' with no type
[-fpermissive]
 foo()
     ^


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

* [Bug target/60481] [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type"
  2014-03-10  9:46 [Bug target/60481] New: [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type" d.g.gorbachev at gmail dot com
@ 2014-03-10 10:20 ` redi at gcc dot gnu.org
  2014-03-10 13:48 ` d.g.gorbachev at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-10 10:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think you need -fno-ms-extensions, which may be on by default for mingw


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

* [Bug target/60481] [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type"
  2014-03-10  9:46 [Bug target/60481] New: [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type" d.g.gorbachev at gmail dot com
  2014-03-10 10:20 ` [Bug target/60481] " redi at gcc dot gnu.org
@ 2014-03-10 13:48 ` d.g.gorbachev at gmail dot com
  2014-03-31  8:55 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2014-03-10 13:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> ---
Yes, it seems that it is on (there is an error with -fno-ms-extensions), but:

$ i686-w64-mingw32-g++-4.9.0 -Q --help=c++ | grep ms-ext
  -fms-extensions                     [disabled]


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

* [Bug target/60481] [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type"
  2014-03-10  9:46 [Bug target/60481] New: [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type" d.g.gorbachev at gmail dot com
  2014-03-10 10:20 ` [Bug target/60481] " redi at gcc dot gnu.org
  2014-03-10 13:48 ` d.g.gorbachev at gmail dot com
@ 2014-03-31  8:55 ` rguenth at gcc dot gnu.org
  2014-03-31  9:32 ` rguenth at gcc dot gnu.org
  2014-06-19  4:54 ` [Bug target/60481] `g++ -Q --help=c++' falsely reports -fms-extensions as [disabled] when in fact it is enabled d.g.gorbachev at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-03-31  8:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0


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

* [Bug target/60481] [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type"
  2014-03-10  9:46 [Bug target/60481] New: [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type" d.g.gorbachev at gmail dot com
                   ` (2 preceding siblings ...)
  2014-03-31  8:55 ` rguenth at gcc dot gnu.org
@ 2014-03-31  9:32 ` rguenth at gcc dot gnu.org
  2014-06-19  4:54 ` [Bug target/60481] `g++ -Q --help=c++' falsely reports -fms-extensions as [disabled] when in fact it is enabled d.g.gorbachev at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-03-31  9:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Thus "works as designed".


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

* [Bug target/60481] `g++ -Q --help=c++' falsely reports -fms-extensions as [disabled] when in fact it is enabled
  2014-03-10  9:46 [Bug target/60481] New: [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type" d.g.gorbachev at gmail dot com
                   ` (3 preceding siblings ...)
  2014-03-31  9:32 ` rguenth at gcc dot gnu.org
@ 2014-06-19  4:54 ` d.g.gorbachev at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2014-06-19  4:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60481

Dmitry Gorbachev <d.g.gorbachev at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
      Known to work|4.8.3                       |4.8.4
         Resolution|WONTFIX                     |---
            Summary|[4.9 Regression] Missing    |`g++ -Q --help=c++' falsely
                   |diagnostic "ISO C++ forbids |reports -fms-extensions as
                   |declaration of 'foo' with   |[disabled] when in fact it
                   |no type"                    |is enabled
      Known to fail|                            |4.10.0

--- Comment #4 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> ---
The bug is still here in GCC vers. 4.9.1 and 4.10.0. Changing the summary to
reflect the actual problem.


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

end of thread, other threads:[~2014-06-19  4:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-10  9:46 [Bug target/60481] New: [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type" d.g.gorbachev at gmail dot com
2014-03-10 10:20 ` [Bug target/60481] " redi at gcc dot gnu.org
2014-03-10 13:48 ` d.g.gorbachev at gmail dot com
2014-03-31  8:55 ` rguenth at gcc dot gnu.org
2014-03-31  9:32 ` rguenth at gcc dot gnu.org
2014-06-19  4:54 ` [Bug target/60481] `g++ -Q --help=c++' falsely reports -fms-extensions as [disabled] when in fact it is enabled d.g.gorbachev at gmail dot com

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