public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23699] New: patch for #23099 breaks glibmm
@ 2005-09-02 15:57 matz at suse dot de
  2005-09-02 16:01 ` [Bug c++/23699] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: matz at suse dot de @ 2005-09-02 15:57 UTC (permalink / raw)
  To: gcc-bugs

Marks patch for fixing PR23099 from 2005-08-29 makes glibmm not compile: 
 
% cat glib-test.cc 
#include <string> 
struct A{ 
  static const long npos = std::string::npos; 
}; 
% g++ -c glib-test.cc 
glib-test.cc:3: error: field initializer is not constant 
 
Reverting it makes this compile again.  To fail it seems to need that the 
type of std::string::npos comes from a template argument member (the allocator 
of std::string in this case).  Easier tests do compile.  Also doing 
the initialization of A::npos outside the class definition makes this compile.

-- 
           Summary: patch for #23099 breaks glibmm
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: mark at codesourcery dot com
        ReportedBy: matz at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-09-03 18:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-02 15:57 [Bug c++/23699] New: patch for #23099 breaks glibmm matz at suse dot de
2005-09-02 16:01 ` [Bug c++/23699] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-02 16:15 ` matz at suse dot de
2005-09-02 16:38 ` [Bug c++/23699] [4.0/4.1 Regression] rejects static int as non constant after "extern template" pinskia at gcc dot gnu dot org
2005-09-03 18:19 ` cvs-commit at gcc dot gnu dot org
2005-09-03 18:27 ` cvs-commit at gcc dot gnu dot org
2005-09-03 18:30 ` cvs-commit at gcc dot gnu dot org
2005-09-03 18:45 ` mmitchel 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).