public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110685] New: problem with volatile
@ 2023-07-16 15:17 irip at qq dot com
2023-07-16 16:50 ` [Bug c++/110685] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: irip at qq dot com @ 2023-07-16 15:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110685
Bug ID: 110685
Summary: problem with volatile
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: irip at qq dot com
Target Milestone: ---
The test case code is initialized using user-defined conversion functions, such
as:
struct S
{
int m;
S(int i = 0) : m(i) { counter++; }
};
...
volatile S s02 = 1;
const volatile S s03 = 1;
Compiler error:no matching function for call to 'S::S(volatile S)'、no matching
function for call to 'S::S(const volatile S)'
Cannot be converted correctly after adding volatile
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-16 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-16 15:17 [Bug c++/110685] New: problem with volatile irip at qq dot com
2023-07-16 16:50 ` [Bug c++/110685] " pinskia at gcc dot gnu.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).