public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/37561]  New: [4.4 Regression] Revision 140405 caused g++.old-deja/g++.mike/warn1.C
@ 2008-09-17 14:50 hjl dot tools at gmail dot com
  2008-09-17 16:02 ` [Bug testsuite/37561] " janis at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-09-17 14:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1313 bytes --]

bash-3.2$ cat g++.old-deja/g++.mike/warn1.C
// { dg-do assemble  }
// { dg-options "-Wall" }

typedef char * charptr;
typedef __SIZE_TYPE__ size_t;
char c[]={'A','B','C','D'};
int i=size_t(&c);
int *pp=&i;
void foo() { }
int main()
{
 charptr(*pp)++;        // { dg-warning "" } 
 return 0;
}
bash-3.2$ gcc -Wall -S -o /tmp/x.s g++.old-deja/g++.mike/warn1.C -m64
g++.old-deja/g++.mike/warn1.C: In function ‘int main()’:
g++.old-deja/g++.mike/warn1.C:12: warning: value computed is not used
bash-3.2$ gcc -Wall -S -o /tmp/x.s g++.old-deja/g++.mike/warn1.C -m32
g++.old-deja/g++.mike/warn1.C: In function ‘int main()’:
g++.old-deja/g++.mike/warn1.C:12: error: lvalue required as increment operand
bash-3.2$ 

On Linux/x86-64, I got

FAIL: g++.old-deja/g++.mike/warn1.C  (test for errors, line 12)
FAIL: g++.old-deja/g++.mike/warn1.C (test for excess errors)


-- 
           Summary: [4.4 Regression] Revision 140405 caused g++.old-
                    deja/g++.mike/warn1.C
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


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


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

end of thread, other threads:[~2009-07-10 15:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-17 14:50 [Bug testsuite/37561] New: [4.4 Regression] Revision 140405 caused g++.old-deja/g++.mike/warn1.C hjl dot tools at gmail dot com
2008-09-17 16:02 ` [Bug testsuite/37561] " janis at gcc dot gnu dot org
2008-09-17 16:12 ` hjl dot tools at gmail dot com
2008-09-17 17:03 ` janis at gcc dot gnu dot org
2008-09-17 17:39 ` janis at gcc dot gnu dot org
2008-09-19 18:26 ` janis at gcc dot gnu dot org
2008-09-20  3:10 ` [Bug c++/37561] " pinskia at gcc dot gnu dot org
2008-10-07 14:10 ` [Bug c++/37561] [4.2/4.3/4.4 " jakub at gcc dot gnu dot org
2008-10-22  3:21 ` mmitchel at gcc dot gnu dot org
2008-11-14 16:12 ` jakub at gcc dot gnu dot org
2008-11-15  9:55 ` jakub at gcc dot gnu dot org
2008-11-15  9:58 ` [Bug c++/37561] [4.2/4.3 " jakub at gcc dot gnu dot org
2009-01-08 22:58 ` rguenth at gcc dot gnu dot org
2009-07-10 15:55 ` rguenth 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).