diff options
| author | Alex Yesmanchyk <aliaksandr.yesmanchyk@gmail.com> | 2026-01-27 21:07:07 -0500 |
|---|---|---|
| committer | Jason Merrill <jason@redhat.com> | 2026-01-28 10:52:32 +0800 |
| commit | 6e9cf03a7602055b534a0bb1f0219d9d35104c2e (patch) | |
| tree | b181a43b2cf6f3ddadd4dccc1ef460c264eb87fc /libjava/gnu/java/net/protocol/gcjlib | |
| parent | fd7635c7d81d8183300934f91b885ecca52dda9b (diff) | |
| download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 | |
Consider the following ptrtomem4.C file.
Now for test1 and test3 it produces the following errors:
ptrtomem4.C: In function 'int test1(int Base::*, X*)':
ptrtomem4.C:8:21: error: pointer to member type 'int Base::*' incompatible with incomplete object type 'X'
ptrtomem4.C: In function 'int test3(int Base::*, Y*)':
ptrtomem4.C:22:21: error: pointer to member type 'int Base::*' incompatible with object type 'Y' because 'Y' is not derived from 'Base'
PR c++/38612
gcc/cp/ChangeLog:
* typeck2.cc (build_m_component_ref): Improve class mismatch
diagnostic.
gcc/testsuite/ChangeLog:
* g++.dg/diagnostic/ptrtomem4.C: New test.
Signed-off-by: Alex Yesmanchyk <aliaksandr.yesmanchyk@gmail.com>
Co-authored-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/gnu/java/net/protocol/gcjlib')
0 files changed, 0 insertions, 0 deletions
