public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5373: Statement expressions broken in C++
@ 2002-04-12 18:48 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2002-04-12 18:48 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mmitchel, nobody, schwab

Synopsis: Statement expressions broken in C++

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Fri Apr 12 18:48:07 2002
Responsible-Changed-Why:
    Working on a fix.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5373


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

* Re: c++/5373: Statement expressions broken in C++
@ 2002-04-13  0:14 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2002-04-13  0:14 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mmitchel, schwab

Synopsis: Statement expressions broken in C++

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Sat Apr 13 00:14:13 2002
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5373


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

* Re: c++/5373: Statement expressions broken in C++
@ 2002-03-12  9:28 jakub
  0 siblings, 0 replies; 4+ messages in thread
From: jakub @ 2002-03-12  9:28 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, schwab

Synopsis: Statement expressions broken in C++

State-Changed-From-To: open->analyzed
State-Changed-By: jakub
State-Changed-When: Tue Mar 12 09:28:25 2002
State-Changed-Why:
    http://gcc.gnu.org/ml/gcc-patches/2002-01/msg01249.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5373


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

* c++/5373: Statement expressions broken in C++
@ 2002-01-14  2:26 Andreas Schwab
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2002-01-14  2:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5373
>Category:       c++
>Synopsis:       Statement expressions broken in C++
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 14 02:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.1 20020107 (experimental)
>Organization:
>Environment:
System: Linux gadolinium 2.4.7-SMP #1 SMP Fri Nov 23 12:13:10 GMT 2001 ia64 unknown
Architecture: ia64

	
host: ia64-suse-linux-gnu
build: ia64-suse-linux-gnu
target: ia64-suse-linux-gnu
configured with: ../configure --enable-threads=posix --enable-long-long --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared ia64-suse-linux
>Description:
The C++ compiler does not accept certain kinds of statement expressions.
Apparently it only accepts those that can be folded to a simple constant
at compile time.
>How-To-Repeat:
$ cat stmtexpr.cc
int
main (int argc, char **argv)
{
  int a = ({ 1 ? 0 : 1; });
  return ({ argc > 1 ? 1 : 0; });
}
$ gcc -c stmtexpr.cc 
stmtexpr.cc: In function `int main(int, char**)':
stmtexpr.cc:5: void value not ignored as it ought to be
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-04-13  7:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12 18:48 c++/5373: Statement expressions broken in C++ mmitchel
  -- strict thread matches above, loose matches on Subject: below --
2002-04-13  0:14 mmitchel
2002-03-12  9:28 jakub
2002-01-14  2:26 Andreas Schwab

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