Daniel Kirchner
c15cb6cc7a
Prevent information about file existence outside the allowed paths to leak by mimicing boost::filesystem::weakly_canonical.
2018-04-11 18:52:22 +02:00
Daniel Kirchner
cb548f6f53
Fix ConstantEvaluator to correctly handle single element tuples.
2018-04-11 18:30:34 +02:00
Daniel Kirchner
fdcbf1337a
Syntax Tests: extract array_length_* tests.
2018-04-11 18:01:24 +02:00
chriseth
d50d1f0ac1
Merge pull request #3580 from ethereum/asm-bitshift-optim
...
Add simplification rule for bitwise shifting
2018-04-11 17:18:31 +02:00
chriseth
29bde7fc2a
Merge pull request #3859 from ethereum/fixerrorlines
...
Fix line numbers for errors.
2018-04-11 17:18:03 +02:00
chriseth
05781c955b
Fix line numbers for errors.
2018-04-11 16:37:49 +02:00
chriseth
c9bdbcf470
Merge pull request #3309 from ethereum/limit-errors
...
Limit the number of errors output in a single run to 256
2018-04-11 16:13:41 +02:00
chriseth
b7b6d0ce7c
Merge pull request #3799 from meowingtwurtle/fixLiteralComparisons
...
Fix bug in typechecking when comparing rational literals
2018-04-11 14:39:13 +02:00
Jason Cobb
3b7b962b66
Fix bug in typechecking when comparing rational literals
2018-04-11 12:03:08 +02:00
Alex Beregszaszi
2e73ef5ac5
Ignore shift warnings on constantinople tests
2018-04-10 15:29:55 +01:00
Alex Beregszaszi
4450034174
Run tests in constantinople mode too
2018-04-10 15:29:55 +01:00
Alex Beregszaszi
5f76f47f2e
Add end to end tests for SHL/SHR/SAR instructions (constantinople only)
2018-04-10 15:29:54 +01:00
Daniel Kirchner
41d81a7432
Merge pull request #3842 from ethereum/syntaxTestsSourceLocations
...
Add source locations to syntax test expectations.
2018-04-10 16:16:04 +02:00
Daniel Kirchner
f03695731b
Add source locations to syntax test expectations.
2018-04-10 14:08:22 +02:00
Daniel Kirchner
2bc4ec31e2
Merge pull request #3853 from ethereum/modifierStyleWithoutParentheses
...
Modifier style constructor calls without parentheses are an error.
2018-04-10 14:05:06 +02:00
Daniel Kirchner
3eedbc6a9c
Error when using no parentheses in modifier-style constructor calls.
2018-04-10 12:09:34 +02:00
chriseth
0546a36aca
Merge pull request #3836 from netrunnerX/develop
...
Update solidity-by-example.rst.
2018-04-10 11:48:29 +02:00
chriseth
b52614116e
Merge pull request #3821 from ethereum/warn-constructor-override
...
Warn constructor override
2018-04-10 11:39:31 +02:00
chriseth
27385d6ded
Merge pull request #3852 from hydai/fix_typo
...
Fixed typos
2018-04-10 10:03:08 +02:00
hydai
aaa8edc36d
Fixed typos
2018-04-10 13:41:35 +08:00
Alex Beregszaszi
cb352edd26
Add constant optimiser for SHR/SHL instructions
2018-04-09 20:07:44 +01:00
NetX
089c295641
Update solidity-by-example.rst
2018-04-09 16:57:38 +02:00
Daniel Kirchner
549ba801fb
Use the most derived contract as main location in case of diamond inheritance.
2018-04-09 16:23:18 +02:00
Daniel Kirchner
b918a105a4
Move constructor argument override check to TypeChecker and reuse annotations in ContractCompiler.
2018-04-09 15:26:08 +02:00
Daniel Kirchner
b8fdb666e2
Allow duplicated constructor calls, if no arguments; support for multiple inheritance; backwards compatibility.
...
# tmp
2018-04-09 15:26:05 +02:00
Federico Bond
4e037281ac
Error on duplicated super constructor calls
2018-04-09 11:22:35 +02:00
chriseth
fe61435c27
Merge pull request #3839 from ethereum/unusedVariableWarningOrder
...
Static Analyzer: Fix non-deterministic order of unused variable warni…
2018-04-06 18:35:21 +02:00
Daniel Kirchner
b2753aa053
Static Analyzer: Fix non-deterministic order of unused variable warnings.
2018-04-06 18:10:26 +02:00
chriseth
12ba3ee082
Merge pull request #3609 from RobbieFerguson/patch-1
...
Update Delegatecall Description in Docs
2018-04-06 16:39:54 +02:00
Robbie Ferguson
49567b3f4c
Update Delegatecall Description in Docs
...
The previous description did not include the fact that the storage locations of the two contracts must align up until the storage variable(s) affected in order for the called contract to successfully write to the caller's storage. If they are misaligned, delegatecall will silently fail. This is difficult to debug without underlying knowledge of how delegatecall works, and clarity in the docs would certainly be helpful.
2018-04-06 16:38:59 +02:00
chriseth
866df15daa
Merge pull request #3832 from ethereum/commonSubexpressionEliminator
...
Common subexpression eliminator.
2018-04-06 15:41:24 +02:00
chriseth
a38418f0d9
Common subexpression eliminator.
2018-04-06 15:16:29 +02:00
Alex Beregszaszi
43d2954de8
Do not abort excessive warnings, just ignore them.
2018-04-06 14:44:03 +02:00
Alex Beregszaszi
0812d1189a
Ignore warnings when limited errors to 256
2018-04-06 13:52:19 +02:00
Alex Beregszaszi
3730f68d4b
reindent
2018-04-06 13:52:19 +02:00
Alex Beregszaszi
e8be0e61b3
Catch FatalError in CompilerStack::analysis to cover all the analysis tests
2018-04-06 13:52:19 +02:00
Alex Beregszaszi
d5f40c141b
Limit the number of errors output in a single run to 256
2018-04-06 13:52:19 +02:00
chriseth
9bd49516d8
Merge pull request #3833 from ethereum/newEthBinaries
...
Use new eth binaries.
2018-04-06 11:59:27 +02:00
Sergiusz Bazanski
f39f36f2c7
Fix file missing error message on imports.
...
Trying to convert an import path into a Boost canonical path causes
boost to throw an exception if the given file does not exist. Thus,
instead of geting to the 'File not found' error, we instead got into the
cath-all handler for 'Unknown exception in read callback'.
This change rearranges the file checks to happen before we create a
canonical Boost path. It also drive-by removes the unnecessary 'else'
block, as the body of the if is a guard-like return block.
2018-04-06 11:03:52 +02:00
chriseth
309a90bb5d
Merge pull request #3818 from ethereum/eth_docker
...
Add scripts to build the eth binary via docker.
2018-04-05 19:05:41 +02:00
chriseth
3c64313e91
Use new eth binaries.
2018-04-05 19:00:44 +02:00
chriseth
6a2c30e4ff
Fix trusty build script for eth.
2018-04-05 17:45:25 +02:00
chriseth
543e1e19c7
Merge pull request #3831 from ethereum/memory-suffix
...
Allow ``memory`` suffix for internal elementary type parsing.
2018-04-05 17:02:43 +02:00
chriseth
d74b71a554
Merge pull request #3805 from kevinflo/tuple-documentation-var-removal
...
Removed documentation reference to var for tuple variable assignment
2018-04-05 16:19:16 +02:00
chriseth
4c50ed39d7
Merge pull request #3829 from ethereum/smt_remove_uf
...
[SMTChecker] Remove usage of UFs to access SSA vars
2018-04-05 16:07:07 +02:00
chriseth
5b1c0506fa
Allow `memory
` suffix for internal elementary type parsing.
2018-04-05 16:06:04 +02:00
chriseth
95b0589f77
Merge pull request #3828 from ethereum/soltest
...
Show JSON error if jsonParseStrict failed in soltest
2018-04-05 15:22:26 +02:00
chriseth
2d22549f64
Merge pull request #3827 from ethereum/constantinople
...
Support constantinople in soltest
2018-04-05 15:21:45 +02:00
Alex Beregszaszi
e0f8657074
Merge pull request #3826 from ethereum/document_afl
...
Document use of AFL.
2018-04-05 14:47:21 +02:00
Daniel Kirchner
037eba20fc
Merge pull request #3824 from ethereum/baseArgumentsEmptyParenthesis
...
Error when using empty parentheses for base class constructors that r…
2018-04-05 14:43:28 +02:00