public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/57630] New: Error should include -std=c11 and friends
@ 2013-06-16 19:22 lailavrazda1979 at gmail dot com
  2013-06-17  9:31 ` [Bug c/57630] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: lailavrazda1979 at gmail dot com @ 2013-06-16 19:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57630
           Summary: Error should include -std=c11 and friends
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lailavrazda1979 at gmail dot com

The following message:

"error: 'for' loop initial declarations are only allowed in C99 mode
minigen.c:88:2: note: use option -std=c99 or -std=gnu99 to compile your code"

should include "-std=c11" and friends.


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

* [Bug c/57630] Error should include -std=c11 and friends
  2013-06-16 19:22 [Bug c/57630] New: Error should include -std=c11 and friends lailavrazda1979 at gmail dot com
@ 2013-06-17  9:31 ` mpolacek at gcc dot gnu.org
  2013-06-17  9:34 ` mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-06-17  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-06-17
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Created attachment 30315
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30315&action=edit
pr57630.patch

That's true, so maybe something like the attached.


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

* [Bug c/57630] Error should include -std=c11 and friends
  2013-06-16 19:22 [Bug c/57630] New: Error should include -std=c11 and friends lailavrazda1979 at gmail dot com
  2013-06-17  9:31 ` [Bug c/57630] " mpolacek at gcc dot gnu.org
@ 2013-06-17  9:34 ` mpolacek at gcc dot gnu.org
  2013-06-18  7:42 ` mpolacek at gcc dot gnu.org
  2013-06-18  7:42 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-06-17  9:34 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #30315|0                           |1
        is obsolete|                            |

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Created attachment 30316
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30316&action=edit
pr57630.patch

Actually, this one.


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

* [Bug c/57630] Error should include -std=c11 and friends
  2013-06-16 19:22 [Bug c/57630] New: Error should include -std=c11 and friends lailavrazda1979 at gmail dot com
  2013-06-17  9:31 ` [Bug c/57630] " mpolacek at gcc dot gnu.org
  2013-06-17  9:34 ` mpolacek at gcc dot gnu.org
@ 2013-06-18  7:42 ` mpolacek at gcc dot gnu.org
  2013-06-18  7:42 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-06-18  7:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Jun 18 07:41:19 2013
New Revision: 200163

URL: http://gcc.gnu.org/viewcvs?rev=200163&root=gcc&view=rev
Log:
    PR c/57630
    * c-decl.c (check_for_loop_decls): Improve diagnostics messages.


Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c


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

* [Bug c/57630] Error should include -std=c11 and friends
  2013-06-16 19:22 [Bug c/57630] New: Error should include -std=c11 and friends lailavrazda1979 at gmail dot com
                   ` (2 preceding siblings ...)
  2013-06-18  7:42 ` mpolacek at gcc dot gnu.org
@ 2013-06-18  7:42 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-06-18  7:42 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2013-06-18  7:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-16 19:22 [Bug c/57630] New: Error should include -std=c11 and friends lailavrazda1979 at gmail dot com
2013-06-17  9:31 ` [Bug c/57630] " mpolacek at gcc dot gnu.org
2013-06-17  9:34 ` mpolacek at gcc dot gnu.org
2013-06-18  7:42 ` mpolacek at gcc dot gnu.org
2013-06-18  7:42 ` mpolacek 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).