Patchwork [wwwdocs] addition to gcc-4.6/changes.html

login
register
mail settings
Submitter Jonathan Wakely
Date March 19, 2011, 7:46 p.m.
Message ID <AANLkTimNU1z3qrcGfxHVKvVNNrzA+S64+aET_yg-yhEx@mail.gmail.com>
Download mbox | patch
Permalink /patch/87618/
State New
Headers show

Comments

Jonathan Wakely - March 19, 2011, 7:46 p.m.
I've committed this patch to note a change in G++, as requested in the
comments of PR c++/44499

Patch

Index: htdocs/gcc-4.6/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.6/changes.html,v
retrieving revision 1.114
diff -u -r1.114 changes.html
--- htdocs/gcc-4.6/changes.html	10 Feb 2011 01:01:42 -0000	1.114
+++ htdocs/gcc-4.6/changes.html	19 Mar 2011 19:36:00 -0000
@@ -388,6 +388,17 @@ 
     Use <code>-fpermissive</code> to allow the old, non-conforming behaviour.
     </li>
 
+    <li>G++ no longer allows objects of const-qualified type to be default
+    initialized unless the type has a user-declared default constructor.
+    Code that fails to compile can be fixed by providing an initializer e.g.
+    <pre>
+    struct A { A(); };
+    struct B : A { };
+    const B b = B();
+    </pre>
+    Use <code>-fpermissive</code> to allow the old, non-conforming behaviour.
+    </li>
+
   </ul>
 
   <h4>Runtime Library (libstdc++)</h4>