public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33801]  New: Missing warning
@ 2007-10-17 17:37 pcarlini at suse dot de
  2007-10-17 17:37 ` [Bug c++/33801] " pcarlini at suse dot de
  0 siblings, 1 reply; 5+ messages in thread
From: pcarlini at suse dot de @ 2007-10-17 17:37 UTC (permalink / raw)
  To: gcc-bugs

For this kind of code:

struct cont
{
  typedef const int& const_reference;
};

template<typename C>
struct iter
{
  void
  f(const typename C::const_reference value)
  { }
};

int main()
{
  iter<cont> it;
  it.f(5);
}

we do not emit any warning for the 'const' in the signature of f. We simply
ignore it. The EDG front-end does.


-- 
           Summary: Missing warning
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pcarlini at suse dot de


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


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

end of thread, other threads:[~2010-07-06 18:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-33801-16141@http.gcc.gnu.org/bugzilla/>
2010-02-21  1:07 ` [Bug c++/33801] Missing warning manu at gcc dot gnu dot org
2010-02-21  1:28 ` bangerth at gmail dot com
2010-07-06 17:34 ` manu at gcc dot gnu dot org
2010-07-06 18:18 ` paolo dot carlini at oracle dot com
2007-10-17 17:37 [Bug c++/33801] New: " pcarlini at suse dot de
2007-10-17 17:37 ` [Bug c++/33801] " pcarlini at suse dot de

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