[prev in list] [next in list] [prev in thread] [next in thread]
List: llvm-bugs
Subject: [LLVMbugs] [Bug 19010] New: Empty base of class with trivial default constructor is not initialized
From: bugzilla-daemon () llvm ! org
Date: 2014-02-28 20:49:35
Message-ID: bug-19010-206 () http ! llvm ! org/bugs/
[Download RAW message or body]
--1393620575.fdE4AbD2.25894
Date: Fri, 28 Feb 2014 14:49:35 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
http://llvm.org/bugs/show_bug.cgi?id=19010
Bug ID: 19010
Summary: Empty base of class with trivial default constructor
is not initialized in constant expression
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs@nondot.org
Reporter: st@quanttec.com
CC: dgregor@apple.com, llvmbugs@cs.uiuc.edu
Classification: Unclassified
The trunk version of clang fails to compile the following test:
struct Empty {};
struct Empty2 : Empty {};
struct Test : Empty2 {
constexpr Test() {}
};
void test() {
constexpr Test t;
}
> clang++ --std=c++1y test.cpp
test.cpp:10:18: error: constexpr variable 't' must be initialized by a constant
expression
constexpr Test t;
^
test.cpp:10:18: note: subobject of type 'Empty' is not initialized
1 error generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
--1393620575.fdE4AbD2.25894
Date: Fri, 28 Feb 2014 14:49:35 -0600
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Empty base of class with trivial default constructor is not \
initialized in constant expression" \
href="http://llvm.org/bugs/show_bug.cgi?id=19010">19010</a> </td>
</tr>
<tr>
<th>Summary</th>
<td>Empty base of class with trivial default constructor is not initialized \
in constant expression </td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++11
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>st@quanttec.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The trunk version of clang fails to compile the following test:
struct Empty {};
struct Empty2 : Empty {};
struct Test : Empty2 {
constexpr Test() {}
};
void test() {
constexpr Test t;
}
<span class="quote">> clang++ --std=c++1y test.cpp</span >
test.cpp:10:18: error: constexpr variable 't' must be initialized by a constant
expression
constexpr Test t;
^
test.cpp:10:18: note: subobject of type 'Empty' is not initialized
1 error generated.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>
--1393620575.fdE4AbD2.25894--
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic