public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/33801] Missing warning [not found] <bug-33801-16141@http.gcc.gnu.org/bugzilla/> @ 2010-02-21 1:07 ` manu at gcc dot gnu dot org 2010-02-21 1:28 ` bangerth at gmail dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: manu at gcc dot gnu dot org @ 2010-02-21 1:07 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from manu at gcc dot gnu dot org 2010-02-21 01:06 ------- What does EDG say? What is the problem? This bug summary is too vague. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33801 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33801] Missing warning [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 3 siblings, 0 replies; 5+ messages in thread From: bangerth at gmail dot com @ 2010-02-21 1:28 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from bangerth at gmail dot com 2010-02-21 01:27 ------- I don't see what should be warned about. The 'const' in the signature of 'f' has no effect here, but it also doesn't hurt -- its presence or absence simply doesn't make a difference. W. -- bangerth at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33801 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33801] Missing warning [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 3 siblings, 0 replies; 5+ messages in thread From: manu at gcc dot gnu dot org @ 2010-07-06 17:34 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from manu at gcc dot gnu dot org 2010-07-06 17:34 ------- 3 years in waiting... I am closing this, we have too many real bugs open to worry about. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution| |WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33801 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/33801] Missing warning [not found] <bug-33801-16141@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2010-07-06 17:34 ` manu at gcc dot gnu dot org @ 2010-07-06 18:18 ` paolo dot carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo dot carlini at oracle dot com @ 2010-07-06 18:18 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from paolo dot carlini at oracle dot com 2010-07-06 18:18 ------- Sorry about the delay. The warning emitted by current ICC by default is exactly: 33801.C(10): warning #21: type qualifiers are meaningless in this declaration f(const typename C::const_reference value) ^ detected during instantiation of class "iter<C> [with C=cont]" at line 16 Likewise VC++, for example. Let's keep this open for a while. -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|WONTFIX | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33801 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [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
* [Bug c++/33801] Missing warning 2007-10-17 17:37 [Bug c++/33801] New: " pcarlini at suse dot de @ 2007-10-17 17:37 ` pcarlini at suse dot de 0 siblings, 0 replies; 5+ messages in thread From: pcarlini at suse dot de @ 2007-10-17 17:37 UTC (permalink / raw) To: gcc-bugs -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Keywords| |diagnostic 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).