public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11833] New: [3.4 regression] Spurious warning for comma-operator in templates
@ 2003-08-06 14:43 bangerth at dealii dot org
  2003-08-06 14:46 ` [Bug c++/11833] " pinskia at physics dot uc dot edu
  2003-08-06 14:56 ` bangerth at ices dot utexas dot edu
  0 siblings, 2 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2003-08-06 14:43 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] Spurious warning for comma-operator in
                    templates
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org

Here's a very annoying regression that swamps my builds in warning
messages:
------------------------------
void g (int, int);

template <int> void f () {
  for (int i;; ++i, ++i)
    g(i,i);
}

template void f<1> ();
------------------------------
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -W -Wall -c x.cc
x.cc: In function `void f()':
x.cc:4: warning: left-hand operand of comma expression has no effect

Clearly, the left hand side of the comma expression _does_ have
an effect. The warning disappears when the function is not a template.

W.


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

* [Bug c++/11833] [3.4 regression] Spurious warning for comma-operator in templates
  2003-08-06 14:43 [Bug c++/11833] New: [3.4 regression] Spurious warning for comma-operator in templates bangerth at dealii dot org
@ 2003-08-06 14:46 ` pinskia at physics dot uc dot edu
  2003-08-06 14:56 ` bangerth at ices dot utexas dot edu
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-06 14:46 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

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


------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-06 14:46 -------
This is a dup of bug 11512.

*** This bug has been marked as a duplicate of 11512 ***


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

* [Bug c++/11833] [3.4 regression] Spurious warning for comma-operator in templates
  2003-08-06 14:43 [Bug c++/11833] New: [3.4 regression] Spurious warning for comma-operator in templates bangerth at dealii dot org
  2003-08-06 14:46 ` [Bug c++/11833] " pinskia at physics dot uc dot edu
@ 2003-08-06 14:56 ` bangerth at ices dot utexas dot edu
  1 sibling, 0 replies; 3+ messages in thread
From: bangerth at ices dot utexas dot edu @ 2003-08-06 14:56 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From bangerth at ices dot utexas dot edu  2003-08-06 14:55 -------
Subject: Re:  [3.4 regression] Spurious warning for comma-operator in templates


> *** This bug has been marked as a duplicate of 11512 ***

Darn, I knew I had seen this somewhere before. Thanks Andrew!
W.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:            bangerth@ices.utexas.edu
                               www: http://www.ices.utexas.edu/~bangerth/


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

end of thread, other threads:[~2003-08-06 14:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-06 14:43 [Bug c++/11833] New: [3.4 regression] Spurious warning for comma-operator in templates bangerth at dealii dot org
2003-08-06 14:46 ` [Bug c++/11833] " pinskia at physics dot uc dot edu
2003-08-06 14:56 ` bangerth at ices dot utexas dot edu

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