Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dmd-cxx] fix issue 19002 - __FUNCTION__ and __PRETTY_FUNCTION__ cannot be used as C string literals #12923

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Jul 25, 2021

Backport of #9920 for PR d/101441.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Auto-close Bugzilla Severity Description
19002 minor __FUNCTION__ and __PRETTY_FUNCTION__ cannot be used as C string literals

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "dmd-cxx + dmd#12923"

@dlang-bot dlang-bot merged commit f8c1ca9 into dlang:dmd-cxx Jul 26, 2021
@ibuclaw ibuclaw deleted the dmd-cxx-19002 branch July 26, 2021 14:59
nstester pushed a commit to nstester/gcc that referenced this pull request Jul 28, 2021
…t (PR101441)

Backports fix from upstream to allow __FUNCTION__ and
__PRETTY_FUNCTION__ to be used as C string literals.

Reviewed-on: dlang/dmd#12923

	PR d/101441

gcc/d/ChangeLog:

	* dmd/MERGE: Merge upstream dmd f8c1ca928.
kraj pushed a commit to kraj/gcc that referenced this pull request Jul 28, 2021
…t (PR101441)

Backports fix from upstream to allow __FUNCTION__ and
__PRETTY_FUNCTION__ to be used as C string literals.

Reviewed-on: dlang/dmd#12923

	PR d/101441

gcc/d/ChangeLog:

	* dmd/expression.c (FuncInitExp::resolveLoc): Set type as `string'.
	(PrettyFuncInitExp::resolveLoc): Likewise.

gcc/testsuite/ChangeLog:

	* gdc.test/compilable/b19002.d: New test.

(cherry picked from commit 1a2306f)
kraj pushed a commit to kraj/gcc that referenced this pull request Jul 28, 2021
…t (PR101441)

Backports fix from upstream to allow __FUNCTION__ and
__PRETTY_FUNCTION__ to be used as C string literals.

Reviewed-on: dlang/dmd#12923

	PR d/101441

gcc/d/ChangeLog:

	* dmd/expression.c (FuncInitExp::resolveLoc): Set type as `string'.
	(PrettyFuncInitExp::resolveLoc): Likewise.

gcc/testsuite/ChangeLog:

	* gdc.test/compilable/b19002.d: New test.

(cherry picked from commit 1a2306f)
kraj pushed a commit to kraj/gcc that referenced this pull request Jul 28, 2021
…t (PR101441)

Backports fix from upstream to allow __FUNCTION__ and
__PRETTY_FUNCTION__ to be used as C string literals.

Reviewed-on: dlang/dmd#12923

	PR d/101441

gcc/d/ChangeLog:

	* dmd/expression.c (FuncInitExp::resolveLoc): Set type as `string'.
	(PrettyFuncInitExp::resolveLoc): Likewise.

gcc/testsuite/ChangeLog:

	* gdc.test/compilable/b19002.d: New test.

(cherry picked from commit 1a2306f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants