<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'"
href="http://llvm.org/bugs/show_bug.cgi?id=21935">bug 21935</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>david.majnemer@gmail.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'"
href="http://llvm.org/bugs/show_bug.cgi?id=21935#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'"
href="http://llvm.org/bugs/show_bug.cgi?id=21935">bug 21935</a>
from <span class="vcard"><a class="email" href="mailto:david.majnemer@gmail.com" title="David Majnemer <david.majnemer@gmail.com>"> <span class="fn">David Majnemer</span></a>
</span></b>
<pre>C++11 [lex.string]p8:
Ordinary string literals and UTF-8 string literals are also referred to as
narrow string literals. A narrow string literal has type "array of n const
char", where n is the size of the string as defined below, and has static
storage duration.
C++11 [conv.qual]p1:
A prvalue of type "pointer to cv1 T" can be converted to a prvalue of type
"pointer to cv2 T" if "cv2 T" is more cv-qualified than "cv1 T".
MSVC gives string literals a non-const type which makes it in violation of the
standard.</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>