public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/38435]  New: bug or no bug ?!
@ 2008-12-07 15:16 cv dot schmitt at googlemail dot com
  2008-12-07 15:31 ` [Bug c/38435] " steven at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: cv dot schmitt at googlemail dot com @ 2008-12-07 15:16 UTC (permalink / raw)
  To: gcc-bugs

It is following little loop:

-----------------------------

#include<stdio.h>
#include<stdbool.h>

int m,a,n;              /* m and n are reserved for later; a is for counting */

int main(void)
{
for (a=0;a<=32;a++)
{
man=true;
}

return(0);


}

--------------------------

Now, the thing is, this loop is wrong, because of 'man=true;'
it is ending in a neverending-loop.

This concerns every loop ( if, switch, do ... until, etc.) in C ...

Is there no algorithm, which can do it, that 'man=true'
is not ending in a neverending loop ???

'a' in 'man' should count - m and n are reserved for else calculations.
every counting step should be set as 'true'. Why does this not work ???

For feedback thank you.
greetings
Val.


-- 
           Summary: bug or no bug ?!
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cv dot schmitt at googlemail dot com
 GCC build triplet: all
  GCC host triplet: gcc-4.3.2
GCC target triplet: all


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


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

* [Bug c/38435] bug or no bug ?!
  2008-12-07 15:16 [Bug c/38435] New: bug or no bug ?! cv dot schmitt at googlemail dot com
@ 2008-12-07 15:31 ` steven at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: steven at gcc dot gnu dot org @ 2008-12-07 15:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from steven at gcc dot gnu dot org  2008-12-07 15:28 -------
Learn C, then try again.


-- 

steven at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-12-07 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-07 15:16 [Bug c/38435] New: bug or no bug ?! cv dot schmitt at googlemail dot com
2008-12-07 15:31 ` [Bug c/38435] " steven 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).